From b87cce74d911681cb0c147717a8508bc765c819c Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Fri, 23 Mar 2012 16:03:53 +0100 Subject: [PATCH] feature #967: Fix xpath expression --- src/cloud/common/CloudAuth.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cloud/common/CloudAuth.rb b/src/cloud/common/CloudAuth.rb index 0feae1edbe..689cbc6c29 100644 --- a/src/cloud/common/CloudAuth.rb +++ b/src/cloud/common/CloudAuth.rb @@ -132,8 +132,8 @@ class CloudAuth def get_password(username, driver=nil) xpath = "USER[NAME=\"#{username}\"" if driver - xpath = "\" and (AUTH_DRIVER=\"" - xpath << driver.split('|').join("or AUTH_DRIVER=\"") << '")' + xpath << " and (AUTH_DRIVER=\"" + xpath << driver.split('|').join("\" or AUTH_DRIVER=\"") << '")' end xpath << "]/PASSWORD"