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:
parent
133a14135f
commit
b87cce74d9
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user