VMware: handle special characters in datacenter name (#42922)

This fix handles special characters in VMware objects

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-07-27 12:17:10 +05:30 committed by GitHub
parent 7dd5f4c01c
commit aefe963483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ def find_obj(content, vimtype, name, first=True):
# Select the first match
if first is True:
for obj in obj_list:
if obj.name == name:
if to_text(obj.name) == to_text(name):
return obj
# If no object found, return None