From a2c41bfa51c61fa7ed25e4d33d91eac8944bdf7c Mon Sep 17 00:00:00 2001 From: simonccc Date: Sat, 10 Aug 2024 21:01:28 +0100 Subject: [PATCH] fix etcd ls thing --- docs/USAGE.md | 2 +- lib/verb_etcd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/USAGE.md b/docs/USAGE.md index 3283270..f627a20 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -9,7 +9,7 @@ ## 💐 image ### create - deletes any existing template -- downloads the configured cloud image +- downloads the cloud image from the url defined in kopsrox.ini - installs `qemu-guest-agent` into the image via `virt-customise` - imports the disk into proxmox storage using a `sudo qm` command - creates cloudinit drive with cloudinit data diff --git a/lib/verb_etcd.py b/lib/verb_etcd.py index d712b8e..c95b148 100755 --- a/lib/verb_etcd.py +++ b/lib/verb_etcd.py @@ -52,7 +52,7 @@ def list_snapshots(): for line in sorted(ls): # if cluster name matches the s3 line append to the images string - if re.search(cluster_name, line): + if re.search('s3', line) and re.search(cluster_name, line): images += line+'\n' # return images string