1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

This commit is contained in:
Alejandro Huertas Herrero 2020-09-09 15:54:33 +02:00 committed by GitHub
parent 338289c854
commit 230c8441ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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