Merge "Fail nicely if ironic port lookup fails"

This commit is contained in:
Zuul 2018-12-17 11:29:06 +00:00 committed by Gerrit Code Review
commit 329a4a96e2
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@
register: uuid
changed_when: false
- name: Fail if port is not found
fail:
msg: Ironic port with MAC address {{ mac }} not found
when: uuid.stdout == ""
- name: Get physical network name
set_fact:
physnet: "{{ source_interface | source_link_to_physnet_name(