1
0
Fork 0
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:
Paul Thornthwaite 2012-12-20 16:11:22 +00:00
parent 2c2e9c3a18
commit 961be3ecd7

View file

@ -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