1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

feature #967: Fix xpath expression

This commit is contained in:
Daniel Molina 2012-03-23 16:03:53 +01:00
parent 133a14135f
commit b87cce74d9

View File

@ -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"