summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2017-02-28 11:09:41 -0500
committerSofer Athlan-Guyot <sathlang@redhat.com>2017-02-28 19:20:13 +0100
commitd54532679edce04a5bdc3159489b77baf90b14ca (patch)
tree555f9a7a8fd0d1550f7de91847533ee033f20715
parent8431fa153b9e1f702baa02405365c4425a3e9a3e (diff)
upgrades: fix ec2api conditional
Rename ec2-api_enabled to ec2_api_enabled so we avoid this error: The conditional check 'ec2-api_enabled.rc == 0' failed. The error was: error while evaluating conditional (ec2-api_enabled.rc == 0): 'api_enabled' is undefined"} Change-Id: Id325fd7eba397155eac7fb6c7410f88486173ba1
-rw-r--r--puppet/services/ec2-api.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/puppet/services/ec2-api.yaml b/puppet/services/ec2-api.yaml
index fefb3220..090e0c4d 100644
--- a/puppet/services/ec2-api.yaml
+++ b/puppet/services/ec2-api.yaml
@@ -120,12 +120,12 @@ outputs:
command: systemctl is-enabled openstack-ec2-api
tags: step0,validation
ignore_errors: True
- register: ec2-api_enabled
+ register: ec2_api_enabled
- name: "PreUpgrade step0,validation: Check if openstack-ec2-api is running"
shell: >
/usr/bin/systemctl show 'openstack-ec2-api' --property ActiveState |
grep '\bactive\b'
- when: ec2-api_enabled.rc == 0
+ when: ec2_api_enabled.rc == 0
tags: step0,validation
- name: Stop openstack-ec2-api service
tags: step1