File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ bucket_name=$2
12
12
echo " Checking if image $image_name exists in OpenStack"
13
13
image_exists=$( openstack image list --name " $image_name " -f value -c Name)
14
14
15
- if [ -n $image_exists ]; then
15
+ if [ -n " $image_exists " ]; then
16
16
echo " Image $image_name already exists in OpenStack."
17
17
else
18
18
echo " Image $image_name not found in OpenStack. Getting it from S3."
Original file line number Diff line number Diff line change 56
56
if: cancelled()
57
57
run: |
58
58
. venv/bin/activate
59
- image_hanging=$(openstack image list --name ${{ inputs.image_name }} -f value -c ID -c Status | grep -v ' active$' | awk '{print $1}'
59
+ image_hanging=$(openstack image list --name ${{ inputs.image_name }} -f value -c ID -c Status | grep -v ' active$' | awk '{print $1}')
60
60
if [ -n $image_hanging ]; then
61
61
echo "Cleaning up OpenStack image with ID: $image_hanging"
62
62
openstack image delete $image_hanging
You can’t perform that action at this time.
0 commit comments