VMware: Log should use uuid instead of name

The data content of instance.name is assigned
to key "UUID", which is not correct. Since instance name
can be same to more than one instances, we should use
instance.uuid.

Change-Id: I96a02fefd21eeb7f5d7be7fa11f690ae3e7163bc
Closes-Bug:1456872
This commit is contained in:
Kevin_Zheng
2015-05-21 08:45:55 +08:00
committed by Zhenyu Zheng
parent 0edfed4187
commit 0318938282

View File

@@ -1811,6 +1811,6 @@ class VMwareVMOps(object):
# NOTE: VM can move hosts in some situations. Debug for admins.
LOG.debug("VM %(uuid)s is currently on host %(host_name)s",
{'uuid': instance.name, 'host_name': host_name},
{'uuid': instance.uuid, 'host_name': host_name},
instance=instance)
return ctype.ConsoleVNC(**vnc_console)