lib/fog/azurerm/models/resources/azure_resources.rb in fog-azure-rm-0.1.0 vs lib/fog/azurerm/models/resources/azure_resources.rb in fog-azure-rm-0.1.1
- old
+ new
@@ -3,16 +3,16 @@
class AzureRM
# This class is giving implementation of all/list and get.
class AzureResources < Fog::Collection
attribute :tag_name
attribute :tag_value
- model AzureResource
+ model Fog::Resources::AzureRM::AzureResource
def all
unless tag_name.nil? && tag_value.nil?
resources = []
service.list_tagged_resources(tag_name, tag_value).each do |resource|
- resources << AzureResource.parse(resource)
+ resources << Fog::Resources::AzureRM::AzureResource.parse(resource)
end
resources.inspect
return load(resources)
end
nil