Make environment to create_stack have a default value

dc5d0ce added this new parameter to create_stack but did not thoroughly
handle all callers to create_stack to add this parameter, which causes
`shaker-image-builder` to crash with a stacktrace

https://bugs.launchpad.net/shaker/+bug/1848368

Change-Id: I91424852a17558e6a593d138ea4926c30359af2d
This commit is contained in:
Sean M. Collins 2019-10-16 14:24:16 -04:00 committed by Ilya Shakhat
parent 1dcddf8358
commit 766c53b372
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ from timeout_decorator import TimeoutError
LOG = logging.getLogger(__name__)
def create_stack(heat_client, stack_name, template, parameters, environment):
def create_stack(heat_client, stack_name, template, parameters,
environment=None):
stack_params = {
'stack_name': stack_name,
'template': template,