mirror of
https://opendev.org/openstack/python-heatclient.git
synced 2026-01-16 23:00:35 +00:00
Mark stacks returned by get loaded
When calling stacks.get, mark the returning stacks as loaded, so that attribute retrieval works right away. If not, any getattr on the Stack will call get() which will request the stack again (and ignore things like resolve_outputs). Change-Id: I3a3f25aa0c6f88e7e4274107c0578fd30dc9f155 Related-Bug: #1774958
This commit is contained in:
parent
e385cae3ac
commit
0b46b2089c
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ class StackManager(StackChildManager):
|
|||
kwargs['params'] = {"resolve_outputs": False}
|
||||
resp = self.client.get('/stacks/%s' % stack_id, **kwargs)
|
||||
body = utils.get_response_body(resp)
|
||||
return Stack(self, body.get('stack'))
|
||||
return Stack(self, body.get('stack'), loaded=True)
|
||||
|
||||
def template(self, stack_id):
|
||||
"""Get template content for a specific stack as a parsed JSON object.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue