lib/fog/orchestration/openstack/models/stack.rb in fog-openstack-0.1.15 vs lib/fog/orchestration/openstack/models/stack.rb in fog-openstack-0.1.17

- old
+ new

@@ -12,10 +12,14 @@ attribute a.to_sym end def save(options = {}) if persisted? - service.update_stack(self, default_options.merge(options)).body['stack'] + stack_default_options = default_options + if (options.key?(:template_url)) + stack_default_options.delete(:template) + end + service.update_stack(self, stack_default_options.merge(options)).body['stack'] else service.stacks.create(default_options.merge(options)) end end