VMware: trivial fix for comment

The patch makes a few minor changes to a comment that was added in
commit I7598afbf0dc3c527471af34224003d28e64daaff

TrivialFix

Change-Id: Ic12b0b17aac6f745e62bade37204af516e50df0d
This commit is contained in:
Gary Kotton 2014-10-02 01:53:00 -07:00
parent 2a7f3af850
commit 12d8258c6a
1 changed files with 5 additions and 4 deletions

View File

@ -841,10 +841,11 @@ class VMwareVMOps(object):
# triggered by the revert resize api call. This prevents
# the uuid-orig VM to be deleted to be able to associate it later.
if instance.task_state != task_states.RESIZE_REVERTING:
# When VM deletion is triggered in middle of VM resize before VM
# arrive RESIZED state, uuid-orig VM need to deleted to avoid
# VM leak. Within method _destroy_instance it will check vmref
# exist or not before attempt deletion.
# When a VM deletion is triggered in the middle of VM resize and
# before the state is set to RESIZED, the uuid-orig VM needs
# to be deleted. This will avoid VM leaks.
# The method _destroy_instance will check that the vmref
# exists before attempting the deletion.
resize_orig_vmname = instance.uuid + self._migrate_suffix
vm_orig_ref = vm_util.get_vm_ref_from_name(self._session,
resize_orig_vmname)