mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #3180: make CLI use sync calls to honor SSL parameters
This commit is contained in:
parent
3d3a8d2487
commit
7520c11555
@ -370,7 +370,7 @@ EOT
|
||||
endpoint=options[:endpoint]
|
||||
end
|
||||
|
||||
@@client=OpenNebula::Client.new(secret, endpoint)
|
||||
@@client=OpenNebula::Client.new(secret, endpoint, :sync => true)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -163,7 +163,9 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
|
||||
# authentication token for the user
|
||||
#-----------------------------------------------------------------------
|
||||
token = auth.login_token(username, options[:time])
|
||||
login_client = OpenNebula::Client.new("#{username}:#{token}")
|
||||
login_client = OpenNebula::Client.new("#{username}:#{token}",
|
||||
nil,
|
||||
:sync => true)
|
||||
|
||||
user = OpenNebula::User.new(User.build_xml, login_client)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user