-a is optional

This commit is contained in:
Michael Vines
2019-10-26 22:03:35 -07:00
parent 593fde628c
commit 4cb38ddf01

View File

@ -288,11 +288,15 @@ if ! $skipCreate; then
echo "--- $cloudProvider.sh create" echo "--- $cloudProvider.sh create"
create_args=( create_args=(
-p "$netName" -p "$netName"
-a "$bootstrapValidatorAddress"
-c "$clientNodeCount" -c "$clientNodeCount"
-n "$additionalValidatorCount" -n "$additionalValidatorCount"
--dedicated --dedicated
) )
if [[ -n $bootstrapValidatorAddress ]]; then
create_args+=(-a "$bootstrapValidatorAddress")
fi
# shellcheck disable=SC2206 # shellcheck disable=SC2206
create_args+=(${zone_args[@]}) create_args+=(${zone_args[@]})