Merge "Use heat stack_update from openstack_dashboard API"

This commit is contained in:
Jenkins 2015-01-19 13:28:44 +00:00 committed by Gerrit Code Review
commit 8c4d335331

View File

@ -99,12 +99,7 @@ class Stack(base.APIResourceWrapper):
'files': provider_resource_templates,
}
password = getattr(settings, 'UNDERCLOUD_ADMIN_PASSWORD', None)
# TODO(lsmola) Bug #1394505. Until then we are calling the client
# directly. When it's fixed, we should use heat_update from
# openstack_dashboard api.
heat.heatclient(request, password).stacks.update(self.id, **fields)
return self
heat.stack_update(request, self.id, password, **fields)
@classmethod
@handle_errors(_("Unable to retrieve heat stacks"), [])