1
0
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:
Javi Fontan 2014-10-21 11:50:01 +02:00
parent 3d3a8d2487
commit 7520c11555
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)