lib/fog/azurerm/models/resources/resource_groups.rb in fog-azure-rm-0.0.5 vs lib/fog/azurerm/models/resources/resource_groups.rb in fog-azure-rm-0.0.6
- old
+ new
@@ -15,11 +15,13 @@
resource_groups.push(Fog::Resources::AzureRM::ResourceGroup.parse(resource_group))
end
load(resource_groups)
end
- def get(identity)
- all.find { |f| f.name == identity }
+ def get(resource_group_name)
+ resource_group = service.get_resource_group(resource_group_name)
+ resource_group_object = Fog::Resources::AzureRM::ResourceGroup.new(service: service)
+ resource_group_object.merge_attributes(Fog::Resources::AzureRM::ResourceGroup.parse(resource_group))
end
end
end
end
end