diff options
Diffstat (limited to 'heatclient/v1/stacks.py')
-rw-r--r-- | heatclient/v1/stacks.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/heatclient/v1/stacks.py b/heatclient/v1/stacks.py index 7279ea5..40ac180 100644 --- a/heatclient/v1/stacks.py +++ b/heatclient/v1/stacks.py @@ -65,6 +65,9 @@ class Stack(base.Resource): def environment(self): return self.manager.environment(self.identifier) + def files(self): + return self.manager.files(self.identifier) + def get(self): # set_loaded() first ... so if we have to bail, we know we tried. self._loaded = True @@ -291,6 +294,16 @@ class StackManager(StackChildManager): body = utils.get_response_body(resp) return body + def files(self, stack_id): + """Returns the files for an existing stack. + + :param stack_id: identifies the stack + :return: + """ + resp = self.client.get('/stacks/%s/files' % stack_id) + body = utils.get_response_body(resp) + return body + def validate(self, **kwargs): """Validate a stack template.""" |