From ded9e287ffc38eedb9dfd4afe5c0cea18c9f0a14 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 14 Jul 2023 22:54:05 +0200 Subject: [PATCH] Identify and delete orphan amphorae Signed-off-by: Christian Berendt --- src/amphora.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/amphora.py b/src/amphora.py index d939953..418c048 100644 --- a/src/amphora.py +++ b/src/amphora.py @@ -108,6 +108,10 @@ def rotate(): pass +def orphan(): + pass + + # Connect to the OpenStack environment cloud = openstack.connect(cloud=CONF.cloud) @@ -118,3 +122,7 @@ def rotate(): # Rotate all amphorae if CONF.rotate: rotate() + +# Identify orphan amphorae +if CONF.orphan: + orphan()