From 380cc2d09b0042dd30db74a64698111eb7f522c9 Mon Sep 17 00:00:00 2001 From: Jan Krcmar Date: Wed, 27 Apr 2016 15:32:40 +0200 Subject: [PATCH] wvmInstance._set_options options.get(o) returns unicode, so cannot be str()ed --- vrtManager/instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrtManager/instance.py b/vrtManager/instance.py index e792e13..3c287e0 100644 --- a/vrtManager/instance.py +++ b/vrtManager/instance.py @@ -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)