lib/fog/azurerm/models/resources/deployments.rb in fog-azure-rm-0.0.5 vs lib/fog/azurerm/models/resources/deployments.rb in fog-azure-rm-0.0.6
- old
+ new
@@ -16,11 +16,13 @@
deployments << Fog::Resources::AzureRM::Deployment.parse(deployment)
end
load(deployments)
end
- def get(identity)
- all.find { |deployment| deployment.name == identity }
+ def get(resource_group_name, deployment_name)
+ deployment = service.get_deployment(resource_group_name, deployment_name)
+ deployment_object = Fog::Resources::AzureRM::Deployment.new(service: service)
+ deployment_object.merge_attributes(Fog::Resources::AzureRM::Deployment.parse(deployment))
end
end
end
end
end