mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
This commit is contained in:
1 parent
a4daa6cff4
commit
6f45110de3
1 file changed
+10
-2
@@ -76,10 +76,18 @@ helpers do
|
||||
end
|
||||
end
|
||||
|
||||
return VCenterDriver::VIClient.new({
|
||||
connection = {
|
||||
:user => vuser,
|
||||
:password => vpass,
|
||||
:host => vhost})
|
||||
:host => vhost
|
||||
}
|
||||
|
||||
if !vhost.nil? && vhost.split(":").length == 2
|
||||
connection[:host] = vhost.split(":")[0]
|
||||
connection[:port] = vhost.split(":")[1]
|
||||
end
|
||||
|
||||
return VCenterDriver::VIClient.new(connection)
|
||||
end
|
||||
|
||||
def return_error(code, msg)
|
||||
|
||||
Reference in new issue
Block a user