Fix the undefined operation_type variable.

On the update_noop or upgrade_noop the operation_type is undefined.

Change-Id: I8ae541b4148c8a40b1fe6b529a35bc4af8a141c5
This commit is contained in:
Daniel Bengtsson 2019-12-10 13:35:57 +01:00
parent 4a1c9c4640
commit 4025761838
2 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@
#
# Run online data migration for OpenStack services
#
{% if overcloud_update|bool -%}
{% if overcloud_update|bool or update_noop|bool -%}
{% set operation_type = 'update' -%}
{% elif overcloud_upgrade|bool -%}
{% elif overcloud_upgrade|bool or upgrade_noop|bool -%}
{% set operation_type = 'upgrade' -%}
{% endif -%}
set -euo pipefail

View File

@ -2,9 +2,9 @@
#
# Prepare conatainer images for overcloud update/upgrade
#
{% if overcloud_update|bool -%}
{% if overcloud_update|bool or update_noop|bool -%}
{% set operation_type = 'update' -%}
{% elif overcloud_upgrade|bool -%}
{% elif overcloud_upgrade|bool or upgrade_noop|bool -%}
{% set operation_type = 'upgrade' -%}
{% endif -%}
set -euo pipefail