mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-21 18:03:38 +03:00
development: Fix some bugs at VNTemplate API
This commit is contained in:
parent
ad677b9235
commit
288b449191
@ -103,7 +103,7 @@ class VirtualNetworkTemplateChmod : public RequestManagerChmod
|
||||
public:
|
||||
VirtualNetworkTemplateChmod():
|
||||
RequestManagerChmod("one.vntemplate.chmod", "Changes permission bits of a "
|
||||
"virtual network template", "A:siiiiiiiiiib")
|
||||
"virtual network template")
|
||||
{
|
||||
Nebula& nd = Nebula::instance();
|
||||
pool = nd.get_vntpool();
|
||||
|
@ -132,7 +132,7 @@ class VNTemplateClone : public RequestManagerClone
|
||||
public:
|
||||
VNTemplateClone():
|
||||
RequestManagerClone("one.vntemplate.clone",
|
||||
"Clone a virtual network template", "A:sisb")
|
||||
"Clone a virtual network template", "A:sis")
|
||||
{
|
||||
Nebula& nd = Nebula::instance();
|
||||
pool = nd.get_vntpool();
|
||||
@ -144,9 +144,9 @@ public:
|
||||
~VNTemplateClone(){};
|
||||
|
||||
ErrorCode request_execute(int source_id, const string &name, int &new_id,
|
||||
bool recursive, const string& s_uattrs, RequestAttributes& att)
|
||||
const string& s_uattrs, RequestAttributes& att)
|
||||
{
|
||||
return clone(source_id, name, new_id, recursive, s_uattrs, att);
|
||||
return clone(source_id, name, new_id, false, s_uattrs, att);
|
||||
};
|
||||
|
||||
protected:
|
||||
|
@ -121,7 +121,7 @@ class VirtualNetworkTemplateDelete : public RequestManagerDelete
|
||||
public:
|
||||
VirtualNetworkTemplateDelete():
|
||||
RequestManagerDelete("one.vntemplate.delete",
|
||||
"A:sib",
|
||||
"A:si",
|
||||
"Deletes a virtual network template")
|
||||
{
|
||||
Nebula& nd = Nebula::instance();
|
||||
@ -133,7 +133,7 @@ public:
|
||||
|
||||
ErrorCode request_execute(int oid, bool recursive, RequestAttributes& att)
|
||||
{
|
||||
return delete_object(oid, recursive, att, auth_op);
|
||||
return delete_object(oid, false, att, auth_op);
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user