Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #937 from vmware/check-vm
Browse files Browse the repository at this point in the history
Check vm
  • Loading branch information
govint authored Feb 21, 2017
2 parents 5f12dfc + 4822496 commit b0a398a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions esx_service/cli/vmdkops_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,12 @@ def generate_vm_list(vms_uuid):
res = ""
for vm_uuid in vms_uuid:
vm_name = vmdk_utils.get_vm_name_by_uuid(vm_uuid)
res = res + vm_name
res = res + ","
# If the VM name cannot be resolved then its possible
# the VM has been deleted or migrated off the host,
# skip the VM in that case.
if vm_name:
res = res + vm_name
res = res + ","

if res:
res = res[:-1]
Expand Down

0 comments on commit b0a398a

Please # to comment.