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

Commit

Permalink
Now getVmdk returns correct JSON error, and prints more info (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Sterin authored Oct 29, 2016
1 parent e307cb0 commit d618cff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esx_service/vmdk_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ def getVMDK(vmdk_path, vol_name, datastore):
result = vol_info(kv.getAll(vmdk_path),
kv.get_vol_info(vmdk_path),
datastore)
except:
msg = "Failed to get disk details for %s" % vmdk_path
except Exception as ex:
msg = "Failed to get disk details for %s (%s)" % (vmdk_path, ex)
logging.error(msg)
result = msg
result = err(msg)
return result

def listVMDK(vm_datastore, tenant):
Expand Down

0 comments on commit d618cff

Please # to comment.