summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2014-09-24 09:58:34 +0100
committerMatthew Booth <mbooth@redhat.com>2014-09-25 15:39:39 +0100
commit37561488da1e849b66f95dc71b1e5f521039c013 (patch)
treeebaeb0f68f4213a17127e6892e8ab62411efda77
parent4d59e1f4398285c6fb635286e0362b35b704dbb9 (diff)
downloadnova-37561488da1e849b66f95dc71b1e5f521039c013.tar.gz
VMware: Improve logging of DatastorePath in error messages
Change-Id: I8ad6dc52c460d11f71c750e8cc287b36d8238106
-rw-r--r--nova/virt/vmwareapi/ds_util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/virt/vmwareapi/ds_util.py b/nova/virt/vmwareapi/ds_util.py
index f9165cab43..764272e548 100644
--- a/nova/virt/vmwareapi/ds_util.py
+++ b/nova/virt/vmwareapi/ds_util.py
@@ -124,6 +124,10 @@ class DatastorePath(object):
return "[%s] %s" % (self._datastore_name, self.rel_path)
return "[%s]" % self._datastore_name
+ def __repr__(self):
+ return "%s(%s, %s)" % (self.__class__.__name__,
+ self.datastore, self.rel_path)
+
@property
def datastore(self):
return self._datastore_name