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:
parent
5e1d3e473a
commit
2c2e9c3a18
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue