Merge "Check for specific error messages in ironic version check"

This commit is contained in:
Zuul 2019-01-08 10:37:10 +00:00 committed by Gerrit Code Review
commit 5451bd05c7
1 changed files with 6 additions and 1 deletions

View File

@ -61,7 +61,12 @@
baremetal node list
register: api_version_result
changed_when: false
failed_when: false
failed_when:
- api_version_result.rc != 0
# 'invalid choice' if the client doesn't support 1.34.
- "'invalid choice' not in api_version_result.stderr"
# 'not supported' if the server doesn't support 1.34.
- "'not supported' not in api_version_result.stderr"
# This is used in port.yml.
- name: Set a fact about whether Ironic supports physical network awareness