1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

wvmInstance._set_options options.get(o) returns unicode, so cannot be str()ed

This commit is contained in:
Jan Krcmar 2016-04-27 15:32:40 +02:00
parent fc71884cd4
commit 380cc2d09b

View file

@ -718,7 +718,7 @@ class wvmInstance(wvmConnect):
def _set_options(self, tree, options):
for o in ['title', 'description']:
option = tree.find(o)
option_value = str(options.get(o, '')).strip()
option_value = options.get(o, '').strip()
if not option_value:
if not option is None:
tree.remove(option)