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

Commit

Permalink
Fixed undefined param in removeVMDK()
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 14, 2017
1 parent 7762f3f commit 7556f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esx_service/vmdk_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,8 @@ def removeVMDK(vmdk_path, vol_name=None, vm_name=None, tenant_uuid=None, datasto
if kv_status_attached:
if vol_name is None:
vol_name = vmdk_utils.get_volname_from_vmdk_path(vmdk_path)
logging.info("*** removeVMDK: %s is in use, volume = %s VM = %s VM-uuid = %s (%s)",
vmdk_path, vol_name, attached_vm_name, kv_uuid, ret)
logging.info("*** removeVMDK: %s is in use, volume = %s VM = %s VM-uuid = %s",
vmdk_path, vol_name, attached_vm_name, kv_uuid)
return err("Failed to remove volume {0}, in use by VM = {1}.".format(vol_name, attached_vm_name))

# Cleaning .vmdk file
Expand Down

0 comments on commit 7556f0e

Please sign in to comment.