Skip to content

Commit

Permalink
Fixed instance facing calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Natalie Schauser committed Jul 29, 2011
1 parent cb1c159 commit 6cbd882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/right_api_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ def initialize(args)
# Add in the top level links for instance_facing_calls here:
resource_type, path, data = self.do_get(ROOT_INSTANCE_RESOURCE)
# The instance's href
instance_href = get_href_from_links(data['links'])
instance_href = get_href_from_links(data['links']).dup
cloud_href = instance_href.split('/instances')[0]
define_instance_method(:get_instance) do |*params|
RightApi::ResourceDetail.new(self, resource_type, path, data)
RightApi::ResourceDetail.new(self, resource_type, path.dup, data.dup)
end

[:volumes, :volume_attachments, :volume_snapshots, :volume_types].each do |meth|
Expand Down

0 comments on commit 6cbd882

Please sign in to comment.