X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?p=releng%2Fglobal-jjb.git;a=blobdiff_plain;f=shell%2Fopenstack-cleanup-orphaned-objects.sh;fp=shell%2Fopenstack-cleanup-orphaned-objects.sh;h=689eab27ffc4ea1da9b7350700502c87fa01edac;hp=59e1edff659706371c40044780a3f7119930decc;hb=8901fe0bee2fecb6b32accffd9f952d46da59a38;hpb=bafd57c92d85a6c8b2c3fd3dbe30aa3a09f8f620 diff --git a/shell/openstack-cleanup-orphaned-objects.sh b/shell/openstack-cleanup-orphaned-objects.sh index 59e1edff..689eab27 100755 --- a/shell/openstack-cleanup-orphaned-objects.sh +++ b/shell/openstack-cleanup-orphaned-objects.sh @@ -83,11 +83,11 @@ trap _rmtemp EXIT # Output the initial list of object UUIDs to a temporary file if [[ -n ${filters} ]]; then # If a filter/match condition is requested/set - openstack --os-cloud "$os_cloud" "${object}" list -f value -c ID $attributes \ + openstack --os-cloud "$os_cloud" "${object}" list -f value -c ID "$attributes" \ | { $filters || true; } | { awk '{print $1}' || true; } > "$tmpfile" else # Otherwise don't pipe through an additional command - openstack --os-cloud "$os_cloud" "${object}" list -f value -c ID $attributes \ + openstack --os-cloud "$os_cloud" "${object}" list -f value -c ID "$attributes" \ | { awk '{print $1}' || true; } > "$tmpfile" fi