summaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorMarius Cornea <mcornea@redhat.com>2017-08-31 10:32:30 +0200
committerEmilien Macchi <emilien@redhat.com>2017-09-06 01:15:12 +0000
commitf2d0901270b6781a5b8ed37aab47da51b79e907c (patch)
treeb074d8582757fb1ca44266a0f5acf3a9474564c8 /puppet
parent9f408dbe8bc8371424ecb816877b1cfe62498f8d (diff)
Allow upgrade tasks to run when looping through steps
Currently for non controller upgrades we're looping through the upgrade steps and run the upgrade tasks based on when conditionals including the step number and the existing upgrade task condition. Some of tasks fail because the variables used in when conditionals are not available through all steps. This change adds default values to these vars where possible or creates them for all steps to avoid failures. Related-Bug: 1708115 Change-Id: I5c731043cec8e31fc82ca98972a301baa7294c4f (cherry picked from commit e2f00ef1dc98140087c81e202a520f549f9a0970)
Diffstat (limited to 'puppet')
-rw-r--r--puppet/services/openvswitch.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/puppet/services/openvswitch.yaml b/puppet/services/openvswitch.yaml
index d8061d4b..6479d7f9 100644
--- a/puppet/services/openvswitch.yaml
+++ b/puppet/services/openvswitch.yaml
@@ -179,6 +179,6 @@ outputs:
with_items:
- "{{ovs_list_of_rpms.stdout_lines}}"
tags: step2
- when: "'2.5.0-14' in '{{ovs_version.stdout}}'
+ when: "'2.5.0-14' in ovs_version.stdout|default('')
or
- ovs_packaging_issue|succeeded"
+ ovs_packaging_issue|default(false)|succeeded"