Update vmcreate.sh
This commit is contained in:
@@ -299,7 +299,7 @@ do
|
||||
ha-manager add vm:$vmid --state started --max_relocate 2 &&
|
||||
ha-manager rules add node-affinity $harule --resources vm:$vmid --nodes pve1,pve2,pve3 --strict 1 &&
|
||||
echo "HA rule added"
|
||||
if [ $? -ne0 ]; then echo "Error creating HA rule"
|
||||
if [ $? -ne0 ]; then echo "Error creating HA rule"; fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user