Merge "VMware: fix AttributeError: TaskInfo instance has no attribute 'name'" into stable/icehouse

This commit is contained in:
Jenkins 2015-06-15 18:02:00 +00:00 committed by Gerrit Code Review
commit 8502a68701
1 changed files with 1 additions and 1 deletions

View File

@ -977,7 +977,7 @@ class VMwareAPISession(object):
try:
task_info = self._call_method(vim_util, "get_dynamic_property",
task_ref, "Task", "info")
task_name = task_info.name
task_name = getattr(task_info, 'name', '')
if task_info.state in ['queued', 'running']:
return
elif task_info.state == 'success':