Fix image download URL regex for opensuse-leap-15.0
The image file name has changed from the form of: opensuse-leap-15.0-image.x86_64-1.0.0-lxc-Buildlp150.26.23.tar.xz to the form of: opensuse-leap-15.0-image.x86_64-1.0.0-lxc-Build26.24.tar.xz This patch changes the regex to accommodate the new form. Change-Id: Ic6fb62b31f4f5892fef32380909e121f13e08f3e
This commit is contained in:
parent
9683e1d419
commit
ea3ecc817f
@ -70,7 +70,7 @@
|
||||
# NOTE(hwoarang) The build ID changes all the time so we need to have a hack to determine the latest one
|
||||
# TODO: Talk to openSUSE people to improve that and possibly use the same location for 42.3 as well.
|
||||
- shell: |
|
||||
curl -s {{ _lxc_hosts_container_image_url_base }} | grep -P -o '{{ ansible_architecture }}.*?lxc.*?Buildlp.*?xz' | head -n 1
|
||||
curl -s {{ _lxc_hosts_container_image_url_base }} | grep -P -o '{{ ansible_architecture }}.*?lxc.*?Build.*?xz' | head -n 1
|
||||
register: _lxc_opensuse_image_build_info
|
||||
- set_fact:
|
||||
opensuse_image_build_info: "{{ _lxc_opensuse_image_build_info.stdout }}"
|
||||
|
Loading…
Reference in New Issue
Block a user