Update nodemgmt-scripts.sh
This commit is contained in:
@@ -771,7 +771,7 @@ BACKUP_UNIFINVR(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
RUN_COMMAND(){
|
RUN_COMMAND(){
|
||||||
while [ $# -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-nt|-nodetype) nodetype=${2^^};;
|
-nt|-nodetype) nodetype=${2^^};;
|
||||||
-cmd) RUNCMD="${2}";;
|
-cmd) RUNCMD="${2}";;
|
||||||
@@ -779,6 +779,7 @@ RUN_COMMAND(){
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
if [ "${nodetype}" == "ALL" ] || [ -n "${nodetype}" ]; then
|
if [ "${nodetype}" == "ALL" ] || [ -n "${nodetype}" ]; then
|
||||||
|
nodetype=ALL
|
||||||
NT_HOSTS=ALL_HOSTS[@]
|
NT_HOSTS=ALL_HOSTS[@]
|
||||||
NTS=(${NM_NODE_TYPES[*]})
|
NTS=(${NM_NODE_TYPES[*]})
|
||||||
elif [ "${nodetype}" != "" ]; then
|
elif [ "${nodetype}" != "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user