summaryrefslogtreecommitdiffstats
path: root/scripts/resource_cleanup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/resource_cleanup.sh')
-rwxr-xr-xscripts/resource_cleanup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/resource_cleanup.sh b/scripts/resource_cleanup.sh
index 433f73b..fe37188 100755
--- a/scripts/resource_cleanup.sh
+++ b/scripts/resource_cleanup.sh
@@ -119,14 +119,14 @@ clean_from_jumphost() {
# if controller node and controller queue exist, execute on that node
echo "Cleaning $NODE"
ssh -oStrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@$NODE \
- "$overcloud_script_loc/$0 -n controller $CONTROLLER_QUEUE" &
+ "$overcloud_script_loc/$(basename $0) -n controller $CONTROLLER_QUEUE" &
fi
if [[ $NODE == *"compute"* && $COMPUTE_QUEUE ]]
then
# if compute node and compute queue exist, execute on that node
echo "Cleaning $NODE"
ssh -oStrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@$NODE \
- "$overcloud_script_loc/$0 -n compute $COMPUTE_QUEUE" &
+ "$overcloud_script_loc/$(basename $0) -n compute $COMPUTE_QUEUE" &
fi
done