lib/testlab/node/ssh.rb in testlab-0.1.0 vs lib/testlab/node/ssh.rb in testlab-0.2.0
- old
+ new
@@ -29,10 +29,14 @@
c.proxy_user = @provider.user
c.proxy_keys = @provider.identity
c.host_name = container.ip
c.user = (container.user || "ubuntu")
- c.keys = container.keys
+ if container.keys.nil?
+ c.password = (container.passwd || "ubuntu")
+ else
+ c.keys = container.keys
+ end
end
end
@container_ssh[name]
end