Merge "upgrades: fix ec2api conditional"

This commit is contained in:
Jenkins 2017-03-01 03:56:03 +00:00 committed by Gerrit Code Review
commit 236a27a1ff
1 changed files with 2 additions and 2 deletions

View File

@ -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