diff --git a/defaults.inc b/defaults.inc index c1dfc81c..fa48ef03 100755 --- a/defaults.inc +++ b/defaults.inc @@ -42,7 +42,7 @@ if [ -f ${NM_FOLDER}/defaults.local.inc ]; then unset IFS declare -a NODE_TYPES - for nmtype in "${NM_HOSTS[@]}"; do + for nmtype in "${!NM_HOSTS[@]}"; do NODE_TYPES+=(${nmtype}) echo $nmtype done