mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[Glesys] Wrap ssh method to use rootpassword if present
This commit is contained in:
parent
c87b1016d8
commit
96e2fbe31a
1 changed files with 7 additions and 0 deletions
|
@ -99,6 +99,13 @@ module Fog
|
|||
Fog::SSH.new(public_ip_address, username, credentials).run(commands)
|
||||
end
|
||||
|
||||
def ssh(command, options={}, &block)
|
||||
if options[:password].nil? && !rootpassword.nil?
|
||||
options[:password] = rootpassword
|
||||
end
|
||||
super(command, options, &block)
|
||||
end
|
||||
|
||||
def public_ip_address(options = {})
|
||||
|
||||
type = options[:type] || nil
|
||||
|
|
Loading…
Add table
Reference in a new issue