mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
Add OpenNebula namespace to the Client initialization in CloudAuth.rb
This commit is contained in:
parent
ec533433fd
commit
9f1e6e5822
@ -86,7 +86,7 @@ class CloudAuth
|
||||
def client(username=nil)
|
||||
expiration_time = @lock.synchronize {
|
||||
time_now = Time.now.to_i
|
||||
|
||||
|
||||
if time_now > @token_expiration_time - EXPIRE_MARGIN
|
||||
@token_expiration_time = time_now + EXPIRE_DELTA
|
||||
end
|
||||
@ -95,8 +95,8 @@ class CloudAuth
|
||||
}
|
||||
|
||||
token = @server_auth.login_token(expiration_time,username)
|
||||
|
||||
Client.new(token,@conf[:one_xmlrpc])
|
||||
|
||||
OpenNebula::Client.new(token,@conf[:one_xmlrpc])
|
||||
end
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user