From d3c1619e6f27c97e12bb83e495ed7beb2d12125d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com>
Date: Thu, 12 Jan 2023 16:37:55 +0100
Subject: [PATCH] [FIX] avoid _segments

---
 templates/retrieve_openstack_cloud_facts.sh.j2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/templates/retrieve_openstack_cloud_facts.sh.j2 b/templates/retrieve_openstack_cloud_facts.sh.j2
index 868fc3a..3b31bbb 100644
--- a/templates/retrieve_openstack_cloud_facts.sh.j2
+++ b/templates/retrieve_openstack_cloud_facts.sh.j2
@@ -17,6 +17,7 @@ TODAY=`date +%F`
 
 for container in `/usr/local/bin/swift list`
 do
+    [[ "$container" == *'_segments' ]] && continue
     file="/backup/cloud/$container.$TODAY"
     printf "DATE = $TODAY"  > $file
     printf "\n\n-- STATS --\n" >>  $file
-- 
GitLab