Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix: Update Gradle publish job
[releng/global-jjb.git]
/
shell
/
openstack-cleanup-orphaned-volumes.sh
diff --git
a/shell/openstack-cleanup-orphaned-volumes.sh
b/shell/openstack-cleanup-orphaned-volumes.sh
index
51b4e58
..
f6d7534
100644
(file)
--- a/
shell/openstack-cleanup-orphaned-volumes.sh
+++ b/
shell/openstack-cleanup-orphaned-volumes.sh
@@
-15,6
+15,17
@@
os_cloud="${OS_CLOUD:-vex}"
set -eux -o pipefail
set -eux -o pipefail
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+lf-activate-venv --python python3 "lftools[openstack]" \
+ kubernetes \
+ niet \
+ python-heatclient \
+ python-openstackclient \
+ python-magnumclient \
+ yq
+
mapfile -t os_volumes < <(openstack --os-cloud "$os_cloud" volume list -f value -c ID --status Available)
if [ ${#os_volumes[@]} -eq 0 ]; then
mapfile -t os_volumes < <(openstack --os-cloud "$os_cloud" volume list -f value -c ID --status Available)
if [ ${#os_volumes[@]} -eq 0 ]; then