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

M #-: check error in user login command (#195)

(cherry picked from commit 230c8441ca3d24d6425cab35824812c847f9bd37)
This commit is contained in:
Alejandro Huertas Herrero 2020-09-09 15:54:33 +02:00 committed by Tino Vazquez
parent afcc7159fd
commit 66931b1623
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -201,6 +201,10 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
login_client = self.get_login_client(username, options)
end
if (login_client.is_a? Array) && login_client[0] == -1
return login_client
end
user = OpenNebula::User.new(User.build_xml, login_client)
egid = options[:group] || -1