From ea3ecc817ff01f065dbef78e4c2dd2dcd860ac76 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Thu, 28 Feb 2019 10:48:06 +0000 Subject: [PATCH] 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 --- tasks/lxc_install_zypper.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lxc_install_zypper.yml b/tasks/lxc_install_zypper.yml index 148bc6d0..918dcf54 100644 --- a/tasks/lxc_install_zypper.yml +++ b/tasks/lxc_install_zypper.yml @@ -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 }}"