Skip to content

Commit

Permalink
Merge pull request fog#1684 from bvox/openstack-network-deprecations
Browse files Browse the repository at this point in the history
[openstack|network] Fix #connection deprecation replacing it with #service
  • Loading branch information
geemus committed Mar 21, 2013
2 parents a80e641 + 7da4fb4 commit 2920203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/fog/openstack/models/network/floating_ip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def save

def create
requires :floating_network_id
merge_attributes(connection.create_floating_ip(self.floating_network_id,
merge_attributes(service.create_floating_ip(self.floating_network_id,


self.attributes).body['floatingip'])
Expand All @@ -42,7 +42,7 @@ def update

def destroy
requires :id
connection.delete_floating_ip(self.id)
service.delete_floating_ip(self.id)
true
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fog/openstack/models/network/floating_ips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(attributes)

def all(filters = filters)
self.filters = filters
load(connection.list_floating_ips(filters).body['floatingips'])
load(service.list_floating_ips(filters).body['floatingips'])
end

def get(floating_network_id)
Expand Down

0 comments on commit 2920203

Please sign in to comment.