1
0
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:
Christian González 2019-01-28 19:36:43 +01:00 committed by Ruben S. Montero
parent ad677b9235
commit 288b449191
3 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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:

View File

@ -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);
}
};