Adapt ContainerImagePrepareDebug to the string pattern

Like other *Debug parameters, make it so we first look for
ContainerImagePrepareDebug to be set, otherwise we fallback to Debug;
like we already do in all other OpenStack services.

Change-Id: I0f18b475c69a8ba71b06f517e87caf0d5c209fbb
This commit is contained in:
Emilien Macchi 2019-09-23 19:14:41 -04:00
parent 25b544f3cc
commit 1d11972b10
1 changed files with 12 additions and 2 deletions

View File

@ -60,7 +60,9 @@ parameters:
ContainerImagePrepareDebug:
default: false
description: Whether or not we want to activate --debug in tripleo container image prepare.
type: boolean
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
ContainerImageRegistryCredentials:
type: json
hidden: true
@ -91,6 +93,10 @@ parameters:
default: {{role.CountDefault|default(0)}}
{% endfor %}
conditions:
service_debug_unset: {equals : [{get_param: ContainerImagePrepareDebug}, '']}
outputs:
role_data:
description: Role data for container image prepare
@ -102,7 +108,11 @@ outputs:
name: tripleo-container-image-prepare
vars:
tripleo_container_image_prepare_log_file: {get_param: ContainerImagePrepareLogFile}
tripleo_container_image_prepare_debug: {get_param: ContainerImagePrepareDebug}
tripleo_container_image_prepare_debug:
if:
- service_debug_unset
- {get_param: Debug }
- {get_param: ContainerImagePrepareDebug }
tripleo_container_image_prepare_roles: {{ roles }}
tripleo_container_image_prepare_content:
parameter_defaults: