mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-02 09:47:00 +03:00
feature #718: Change operation for deploy and migrate actions to DEPLOY
This commit is contained in:
parent
85b2bc4127
commit
a85b531035
@ -89,7 +89,10 @@ public:
|
||||
VirtualMachineDeploy():
|
||||
RequestManagerVirtualMachine("VirtualMachineDeploy",
|
||||
"Deploys a virtual machine",
|
||||
"A:sii"){};
|
||||
"A:sii")
|
||||
{
|
||||
auth_op = AuthRequest::DEPLOY;
|
||||
};
|
||||
|
||||
~VirtualMachineDeploy(){};
|
||||
|
||||
@ -106,7 +109,10 @@ public:
|
||||
VirtualMachineMigrate():
|
||||
RequestManagerVirtualMachine("VirtualMachineDeploy",
|
||||
"Migrates a virtual machine",
|
||||
"A:siib"){};
|
||||
"A:siib")
|
||||
{
|
||||
auth_op = AuthRequest::DEPLOY;
|
||||
};
|
||||
|
||||
~VirtualMachineMigrate(){};
|
||||
|
||||
|
@ -58,7 +58,6 @@ bool RequestManagerVirtualMachine::vm_authorization(int oid,
|
||||
if (hid != -1)
|
||||
{
|
||||
ar.add_auth(AuthRequest::HOST,hid,-1,AuthRequest::USE,0,false);
|
||||
ar.add_auth(AuthRequest::HOST,hid,-1,AuthRequest::DEPLOY,0,false);
|
||||
}
|
||||
else if (tmpl != 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user