diff options
author | juraj.linkes <jlinkes@cisco.com> | 2017-07-31 10:29:19 +0200 |
---|---|---|
committer | juraj.linkes <jlinkes@cisco.com> | 2017-07-31 10:29:19 +0200 |
commit | 28fb6476b9fa8a7910c266e651eafcdc0d9f03cf (patch) | |
tree | c7f488ec79653f1665770f5687f4ee7abd604b63 /scripts/resource_cleanup.sh | |
parent | 89e5bbce4796b103084b6d5c7ad1e9329c6dd370 (diff) |
Minor script fixes/improvements
Change-Id: I9e8da01ff2d6a94bb1fb0f64dc660ec0a49f63b6
Signed-off-by: juraj.linkes <jlinkes@cisco.com>
Diffstat (limited to 'scripts/resource_cleanup.sh')
-rwxr-xr-x | scripts/resource_cleanup.sh | 4 |
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 |