1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|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:09:40 +00:00
parent 5e1d3e473a
commit 2c2e9c3a18

View file

@ -31,7 +31,7 @@ module Fog
if(delete_snapshot && root_device_type == "ebs")
block_device = block_device_mapping.detect {|block_device| block_device['deviceName'] == root_device_name}
@connection.snapshots.new(:id => block_device['snapshotId']).destroy
connection.snapshots.new(:id => block_device['snapshotId']).destroy
else
true
end