lib/azure/armrest/template_deployment_service.rb in azure-armrest-0.6.1 vs lib/azure/armrest/template_deployment_service.rb in azure-armrest-0.7.0

- old
+ new

@@ -36,19 +36,16 @@ url = build_url(resource_group, deploy_name, 'operations', op_id) response = rest_get(url) TemplateDeploymentOperation.new(response) end - # Returns the json template as an object for the given deployment. + # Returns the raw json template for the given deployment as a string. # - # If you want the plain JSON text then call .to_json on the returned object. - # def get_template(deploy_name, resource_group = configuration.resource_group) validate_resource_group(resource_group) validate_resource(deploy_name) url = build_url(resource_group, deploy_name, 'exportTemplate') - response = JSON.parse(rest_post(url))['template'] - DeploymentTemplate.new(response) + JSON.parse(rest_post(url))['template'].to_json end # Delete a deployment and all associated resources that were generated by the # deployment. #