X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-cleanup-old-images.sh;h=2ca391709494912f46ce634fb5466ae9a42364a1;hb=bafd57c92d85a6c8b2c3fd3dbe30aa3a09f8f620;hp=cbb2ef8e71ab9125181a3c759c58212b233000ca;hpb=af44374df0c6e82dac61918b5148c57c217a4900;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-cleanup-old-images.sh b/shell/openstack-cleanup-old-images.sh index cbb2ef8e..2ca39170 100644 --- a/shell/openstack-cleanup-old-images.sh +++ b/shell/openstack-cleanup-old-images.sh @@ -11,6 +11,17 @@ # Removes openstack images older than X days in the cloud echo "---> Cleanup old images" +# shellcheck disable=SC1090 +source ~/lf-env.sh + +lf-activate-venv --python python3 "lftools[openstack]" \ + kubernetes \ + niet \ + python-heatclient \ + python-openstackclient \ + python-magnumclient \ + yq + os_cloud="${OS_CLOUD:-vex}" os_image_cleanup_age="${OS_IMAGE_CLEANUP_AGE:-30}"