From 2c2e9c3a1827f00a028f82ce5b96c033c95829ec Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Thu, 20 Dec 2012 16:09:40 +0000 Subject: [PATCH] [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. --- lib/fog/aws/models/compute/image.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/aws/models/compute/image.rb b/lib/fog/aws/models/compute/image.rb index 7bd2b5908..6055de055 100644 --- a/lib/fog/aws/models/compute/image.rb +++ b/lib/fog/aws/models/compute/image.rb @@ -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