From 766c53b372edf48ba00f230f850096030f465549 Mon Sep 17 00:00:00 2001 From: "Sean M. Collins" Date: Wed, 16 Oct 2019 14:24:16 -0400 Subject: [PATCH] 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 --- shaker/openstack/clients/heat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shaker/openstack/clients/heat.py b/shaker/openstack/clients/heat.py index 7735fac..6593419 100644 --- a/shaker/openstack/clients/heat.py +++ b/shaker/openstack/clients/heat.py @@ -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,