get_original_user: override source_image_facts
See https://github.com/ansible/ansible/issues/15710#issuecomment-216645922 for the context. So we need to override the source_image_facts in the block to make sure we can get the image infos later. Change-Id: Iedef1fa3791342479915cf36a30c18602a402c3f Closes-Bug: #1836048
This commit is contained in:
parent
9fed9e2eef
commit
c7a6819599
|
@ -17,8 +17,12 @@
|
|||
name: "{{ source_image }}"
|
||||
retries: 5
|
||||
delay: 5
|
||||
until: source_image_facts.images is defined
|
||||
register: source_image_facts
|
||||
until: downloaded_image_facts.images is defined
|
||||
register: downloaded_image_facts
|
||||
# https://github.com/ansible/ansible/issues/15710#issuecomment-216645922
|
||||
- name: Override source_image_facts
|
||||
set_fact:
|
||||
source_image_facts: "{{ downloaded_image_facts }}"
|
||||
when: source_image_facts.images | length == 0
|
||||
- name: Set original_user with Docker
|
||||
set_fact:
|
||||
|
|
Loading…
Reference in New Issue