[libvirt] [dockerfiles PATCH] refresh: Adapt to recent lcitool changes

Andrea Bolognani posted 1 patch 5 years, 1 month ago
Failed in applying to current master (apply log)
refresh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[libvirt] [dockerfiles PATCH] refresh: Adapt to recent lcitool changes
Posted by Andrea Bolognani 5 years, 1 month ago
lcitool uses argparse subparsers and positional parameters now,
so we need to make sure we invoke it appropriately.

This is needed since libvirt-jenkins-ci commit bfb9d96664f0.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
Pushed as trivial.

 refresh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/refresh b/refresh
index 922abcf..701d2af 100755
--- a/refresh
+++ b/refresh
@@ -14,7 +14,7 @@ cd "$ci_repo/guests/" >/dev/null 2>&1 || {
     die "Usage: $me path/to/libvirt-jenkins-ci.git"
 }
 
-for host in $(./lcitool -a hosts)
+for host in $(./lcitool hosts)
 do
     projects="libvirt"
     dockerfile="$here/buildenv-${host#libvirt-}.Dockerfile"
@@ -24,7 +24,7 @@ do
         libvirt-freebsd-*)      continue ;;
     esac
 
-    ./lcitool -a dockerfile -h "$host" -p "$projects" >"$dockerfile" || {
+    ./lcitool dockerfile "$host" "$projects" >"$dockerfile" || {
         die "$me: Failed to refresh Dockerfile for $host"
     }
 done
-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list