Skip to content

Commit fbc8610

Browse files
committed
Merge remote-tracking branch 'origin/4.14' into 4.15
2 parents 86508b7 + a78f676 commit fbc8610

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3350,7 +3350,8 @@ private void orchestrateReboot(final String vmUuid, final Map<VirtualMachineProf
33503350

33513351
final Answer rebootAnswer = cmds.getAnswer(RebootAnswer.class);
33523352
if (rebootAnswer != null && rebootAnswer.getResult()) {
3353-
if (dc.isSecurityGroupEnabled() && vm.getType() == VirtualMachine.Type.User) {
3353+
boolean isVmSecurityGroupEnabled = _securityGroupManager.isVmSecurityGroupEnabled(vm.getId());
3354+
if (isVmSecurityGroupEnabled && vm.getType() == VirtualMachine.Type.User) {
33543355
List<Long> affectedVms = new ArrayList<Long>();
33553356
affectedVms.add(vm.getId());
33563357
_securityGroupManager.scheduleRulesetUpdateToHosts(affectedVms, true, null);

0 commit comments

Comments
 (0)