Fix downloading lxc image 33/61833/1 stable/fraser
authorHarry Huang <huangxiangyu5@huawei.com>
Wed, 5 Sep 2018 01:50:57 +0000 (09:50 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Wed, 5 Sep 2018 01:51:43 +0000 (09:51 +0800)
Change-Id: I195a2203c9c998e264c54effc37346fec67c6c6a
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
deploy/adapters/ansible/roles/config-osa/files/lxc_cache_prestage.patch

index 14f5f5f..5ac8d3d 100644 (file)
@@ -4,7 +4,7 @@
      --dir=/tmp
      --out=rootfs.tar.xz
      --check-certificate={{ (lxc_hosts_validate_certs | bool) | lower }}
--    {% for server in lxc_image_cache_server_mirrors %}{{ server }}{{ lxc_images[0].split(';')[-1] }}rootfs.tar.xz {% endfor %}
+-    {% for server in lxc_image_cache_server_mirrors %}{{ server }}{{ item.split(';')[-1] }}rootfs.tar.xz {% endfor %}
 +    http://192.168.137.222/download/rootfs.tar.xz
      > /var/log/aria2c-image-prestage.log 2>&1
    args: