diff options
author | Matthew Booth <mbooth@redhat.com> | 2014-09-24 09:58:34 +0100 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2014-09-25 15:39:39 +0100 |
commit | 37561488da1e849b66f95dc71b1e5f521039c013 (patch) | |
tree | ebaeb0f68f4213a17127e6892e8ab62411efda77 | |
parent | 4d59e1f4398285c6fb635286e0362b35b704dbb9 (diff) | |
download | nova-37561488da1e849b66f95dc71b1e5f521039c013.tar.gz |
VMware: Improve logging of DatastorePath in error messages
Change-Id: I8ad6dc52c460d11f71c750e8cc287b36d8238106
-rw-r--r-- | nova/virt/vmwareapi/ds_util.py | 4 |
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 |