if template attribute is None)
:param env_values: dict() of strings for substitution of template
default values (optional)
+ :param files: Supplies the contents of files referenced in the template
+ or the environment. This object must be a dict() of
+ strings where the key is the file URI or filename and the
+ value contains the file's contents (optional)
"""
self.name = kwargs.get('name')
self.template = kwargs.get('template')
self.template_path = kwargs.get('template_path')
self.env_values = kwargs.get('env_values')
+ self.files = kwargs.get('files')
+
if 'stack_create_timeout' in kwargs:
self.stack_create_timeout = kwargs['stack_create_timeout']
else:
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'])