lib/azure/armrest/template_deployment_service.rb in azure-armrest-0.9.9 vs lib/azure/armrest/template_deployment_service.rb in azure-armrest-0.9.10

- old
+ new

@@ -72,9 +72,22 @@ false end private + # Don't transform templates or parameters for deployments. + # + def transform_create_options(hash) + properties = hash['properties'] || hash[:properties] + return super(hash) unless properties + + ignored = properties.extract!(:template, 'template', :parameters, 'parameters') + hash = super(hash) + (hash['properties'] || hash[:properties]).merge!(ignored) + + hash + end + def delete_resources(ids, retry_cnt) if retry_cnt == 0 ids.each { |id| log("error", "Failed to delete #{id}") } return end