mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
wvmInstance._set_options options.get(o) returns unicode, so cannot be str()ed
This commit is contained in:
parent
fc71884cd4
commit
380cc2d09b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue