lib/fog/vcloud/models/compute/catalogs.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/vcloud/models/compute/catalogs.rb in fog-maestrodev-1.8.0.20130109172219
- old
+ new
@@ -8,16 +8,16 @@
model Fog::Vcloud::Compute::Catalog
attribute :organization_uri
def all
- org_uri = self.organization_uri || connection.default_organization_uri
- data = connection.get_organization(org_uri).links.select { |link| link[:type] == "application/vnd.vmware.vcloud.catalog+xml" }
+ org_uri = self.organization_uri || service.default_organization_uri
+ data = service.get_organization(org_uri).links.select { |link| link[:type] == "application/vnd.vmware.vcloud.catalog+xml" }
load(data)
end
def get(uri)
- connection.get_catalog(uri)
+ service.get_catalog(uri)
rescue Fog::Errors::NotFound
nil
end
def item_by_name(name)