Ensure container_startup_configs_json_stat is defined

When using --tags to run only a subset of tasks from
common/deploy-steps-tasks.yaml, the condition that checks the result of
container_startup_configs_json_stat.stat.exists was failing since the
task that defined it was skipped.

This patch adds an additional "is defined" check to ensure the var is
defined be the result is checked.

Change-Id: Iadde90ed9416902848df2e60551470c0f1689a32
This commit is contained in:
James Slagle 2019-08-23 18:02:33 -04:00
parent 1b9d3566d1
commit 7bd3bbbd06
1 changed files with 2 additions and 2 deletions

View File

@ -746,8 +746,8 @@ outputs:
path: /var/lib/tripleo-config/container-startup-config-1.json path: /var/lib/tripleo-config/container-startup-config-1.json
register: container_startup_configs_json_stat register: container_startup_configs_json_stat
- import_tasks: common_deploy_steps_tasks.yaml - import_tasks: common_deploy_steps_tasks.yaml
when: when: (deploy_identifier is defined and deploy_identifier != "" and deploy_identifier is not none) or
- ((deploy_identifier is defined and deploy_identifier != "" and deploy_identifier is not none) or not container_startup_configs_json_stat.stat.exists) (container_startup_configs_json_stat is defined and not container_startup_configs_json_stat.stat.exists)
tags: tags:
- overcloud - overcloud
- deploy_steps - deploy_steps