mirror of https://github.com/apache/cloudstack.git
CS-15542: UnPlugNicCommand return success if vif doesn't exist
reviewed-by: kelven
This commit is contained in:
parent
c7890554e3
commit
16450c0343
|
|
@ -1466,7 +1466,9 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
}
|
||||
|
||||
VirtualDevice nic = findVirtualNicDevice(vmMo, cmd.getNic().getMac());
|
||||
|
||||
if ( nic == null ) {
|
||||
return new UnPlugNicAnswer(cmd, true, "success");
|
||||
}
|
||||
VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();
|
||||
VirtualDeviceConfigSpec[] deviceConfigSpecArray = new VirtualDeviceConfigSpec[1];
|
||||
deviceConfigSpecArray[0] = new VirtualDeviceConfigSpec();
|
||||
|
|
|
|||
Loading…
Reference in New Issue