mirror of https://github.com/apache/cloudstack.git
bug 8843: add vm into security group when vm is created
status 8843: resolved fixed
This commit is contained in:
parent
cb278909dd
commit
0399febaf4
|
|
@ -2141,6 +2141,8 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
throw new CloudRuntimeException("Unable to assign Vm to the group " + group);
|
||||
}
|
||||
|
||||
_networkGroupMgr.addInstanceToGroups(vm.getId(), cmd.getSecurityGroupIdList());
|
||||
|
||||
return vm;
|
||||
}
|
||||
|
||||
|
|
@ -2188,9 +2190,6 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
updateVmStateForFailedVmCreation(vm.getId());
|
||||
}
|
||||
|
||||
_networkGroupMgr.addInstanceToGroups(vm.getId(), cmd.getSecurityGroupIdList());
|
||||
|
||||
|
||||
if (template.getEnablePassword()) {
|
||||
//this value is not being sent to the backend; need only for api dispaly purposes
|
||||
vm.setPassword(password);
|
||||
|
|
|
|||
Loading…
Reference in New Issue