diff options
author | Steven Hardy <shardy@redhat.com> | 2016-06-08 13:02:40 +0100 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2016-07-21 22:58:36 +0100 |
commit | 3ae1c3e7159b5a9f02f81638efc87afa137c7a31 (patch) | |
tree | b25a0229bc15664e9bce6e04d9e1239dbcffbc5f /heatclient/v1/stacks.py | |
parent | 1c85ce9f5ae8da5eee987f99872c0d1aa9fb0f3c (diff) | |
download | python-heatclient-3ae1c3e7159b5a9f02f81638efc87afa137c7a31.tar.gz |
Add support for stack file list
This shows the files map for a given stack
Depends-On: I3198b6a7dc06648af24c198d39470f3b0d5d6f11
Change-Id: Ib7d033a660fe294bf3f7b42e4aa7020149ce24c1
blueprint: files-show
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.""" |