Browse Source

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
tags/11.2.0
James Slagle 2 months ago
parent
commit
7bd3bbbd06
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      common/deploy-steps.j2

+ 2
- 2
common/deploy-steps.j2 View File

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

Loading…
Cancel
Save