lib/fog/rackspace/models/compute_v2/attachments.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/rackspace/models/compute_v2/attachments.rb in fog-maestrodev-1.8.0.20130109172219
- old
+ new
@@ -9,15 +9,15 @@
model Fog::Compute::RackspaceV2::Attachment
attr_accessor :server
def all
- data = connection.list_attachments(server.id).body['volumeAttachments']
+ data = service.list_attachments(server.id).body['volumeAttachments']
load(data)
end
def get(volume_id)
- data = connection.get_attachment(server.id, volume_id).body['volumeAttachment']
+ data = service.get_attachment(server.id, volume_id).body['volumeAttachment']
data && new(data)
end
end
end
end