mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
wvmInstance._set_options options.get(o) returns unicode, so cannot be str()ed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user