Michael Pasternak has uploaded a new change for review.

Change subject: cli: Wrong name of section in .rhevmshell causes to traceback 
#880641
......................................................................

cli: Wrong name of section in .rhevmshell causes to traceback #880641

https://bugzilla.redhat.com/show_bug.cgi?id=880641

Change-Id: Ie29d9d5e26e7a69097dd199bee0192971cc8324d
Signed-off-by: Michael Pasternak <[email protected]>
---
M src/cli/settings.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/23/10023/1

diff --git a/src/cli/settings.py b/src/cli/settings.py
index 2fdfcbc..ff23b4d 100644
--- a/src/cli/settings.py
+++ b/src/cli/settings.py
@@ -120,9 +120,10 @@
                 old_format = True
             for key, value in items:
                 conf_key = '%s:%s' % (section, key)
-                self[conf_key] = value
                 if conf_key not in OvirtCliSettings.config_items:
                     old_format = True
+                else:
+                    self[conf_key] = value
 
         return True, old_format
 


--
To view, visit http://gerrit.ovirt.org/10023
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie29d9d5e26e7a69097dd199bee0192971cc8324d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to