mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
cleanup in models
This commit is contained in:
parent
b2c3ad554a
commit
cc8b38ab56
3 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ module Fog
|
|||
end
|
||||
|
||||
def reload
|
||||
new_attributes = addresses.all(@public_ip).first.attributes
|
||||
new_attributes = addresses.get(@public_ip).attributes
|
||||
merge_attributes(new_attributes)
|
||||
end
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ module Fog
|
|||
end
|
||||
|
||||
def reload
|
||||
new_attributes = volumes.all(@volume_id).first.attributes
|
||||
new_attributes = volumes.get(@volume_id).attributes
|
||||
merge_attributes(new_attributes)
|
||||
end
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ describe 'Fog::AWS::EC2::Volume' do
|
|||
describe "#initialize" do
|
||||
|
||||
it "should remap attributes from parser" # do
|
||||
# volume = Fog::AWS::EC2::Volume.new(
|
||||
# volume = Fog::AWS::EC2::Address.new(
|
||||
# 'instanceId' => 'i-00000000',
|
||||
# 'publicIp' => '0.0.0.0'
|
||||
# )
|
||||
|
|
Loading…
Add table
Reference in a new issue