diff --git a/vmcreate.sh b/vmcreate.sh index dac2f06..bd695ad 100644 --- a/vmcreate.sh +++ b/vmcreate.sh @@ -125,8 +125,9 @@ while getopts "a:f:hk:u:p:d:n:t:" opt; do done if [ $harule ]; then - echo "CURRENT AFFINITY RULES:" - echo + hostcheck "$harule" + if [ $? -ne 0 ]; then echo "HArule should contain only letters, numbers and dashes. Aborting."; exit 1; fi +fi if [[ $node -lt 1 || $node -gt 4 ]]; then echo "Node number is not in [1..4]. Please specify correct node number. Aborting"