backup script completed, all backup taken for 23-Feb
This commit is contained in:
14
wsl/scripts/openstack_client_info/find_projects.sh
Normal file
14
wsl/scripts/openstack_client_info/find_projects.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
INPUT="customers.txt"
|
||||
|
||||
while IFS= read -r client; do
|
||||
name="$(echo "$client" | xargs)"
|
||||
[ -z "$name" ] && continue
|
||||
|
||||
if openstack project list -f value -c Name | grep -iF -- "$name" >/dev/null; then
|
||||
echo "FOUND : $name"
|
||||
else
|
||||
echo "NOT FOUND : $name"
|
||||
fi
|
||||
done < "$INPUT"
|
||||
Reference in New Issue
Block a user