F #1208: Add support for sunstone (#3739)

Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
This commit is contained in:
Carlos J. Herrera authored and Tino Vázquez committed 2019-09-19 16:40:13 +02:00
1 parent a4daa6cff4
commit 6f45110de3
1 file changed
+10 -2
+10 -2
View File
@@ -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)