summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/utils/heat_utils.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-12-29 09:21:05 -0700
committerspisarski <s.pisarski@cablelabs.com>2017-12-29 09:21:05 -0700
commitc2529aa55013a8e7df7080c3bb9693c313fb9b67 (patch)
tree8149b2b0edea401bcbb84dcce108ff017ef6c9e7 /snaps/openstack/utils/heat_utils.py
parent58ae4e51e160ee243e2761e5bdaf42508d6097dc (diff)
Added support for Heat resource files.
Change-Id: I936c0ef5570b5b417e4649504a817f0ca216812f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/utils/heat_utils.py')
-rw-r--r--snaps/openstack/utils/heat_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/snaps/openstack/utils/heat_utils.py b/snaps/openstack/utils/heat_utils.py
index 07692e2..8e49c53 100644
--- a/snaps/openstack/utils/heat_utils.py
+++ b/snaps/openstack/utils/heat_utils.py
@@ -117,6 +117,9 @@ def create_stack(heat_cli, stack_settings):
if stack_settings.env_values:
args['parameters'] = stack_settings.env_values
+ if stack_settings.files:
+ args['files'] = stack_settings.files
+
stack = heat_cli.stacks.create(**args)
return get_stack_by_id(heat_cli, stack_id=stack['stack']['id'])