mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[libvirt|compute] Updates 'connection' references
`connection` is being deprecated within Fog::Model because it actually refers to the Fog::Service not the Fog::Connection. This replaces references to the instance variable to use the accessor so will continue to work following deprecation.
This commit is contained in:
parent
2c2e9c3a18
commit
961be3ecd7
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ module Fog
|
|||
|
||||
def ssh_proxy
|
||||
# if this is a direct connection, we don't need a proxy to be set.
|
||||
return nil unless @connection.uri.ssh_enabled?
|
||||
return nil unless connection.uri.ssh_enabled?
|
||||
user_string= connection.uri.user ? "-l #{connection.uri.user}" : ""
|
||||
Net::SSH::Proxy::Command.new("ssh #{user_string} #{connection.uri.host} nc %h %p")
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue