When SlaveMachine config is created from Pool Wizard, it contains trailing whitespaces and SlaveMachineParser can't deal with them. This patch strips parsed auth_type string so configs created from Pool Wizard can be used straight away.
Signed-off-by: Jiri Prochazka jprochaz@redhat.com --- lnst/Controller/SlaveMachineParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/SlaveMachineParser.py b/lnst/Controller/SlaveMachineParser.py index 3fee680..70af0dc 100644 --- a/lnst/Controller/SlaveMachineParser.py +++ b/lnst/Controller/SlaveMachineParser.py @@ -76,7 +76,7 @@ class SlaveMachineParser(XmlParser): return sec
auth_type_tag = sec_tag.find("auth_type") - sec["auth_type"] = auth_type_tag.text + sec["auth_type"] = auth_type_tag.text.strip()
auth_passwd_tag = sec_tag.find("auth_password") if auth_passwd_tag is not None: