refactor coding style

This commit is contained in:
jeanepaul
2015-08-09 01:07:12 +09:00
parent a68f0a853f
commit eaacc1e5c1
3 changed files with 5 additions and 4 deletions

View File

@@ -401,7 +401,7 @@ function create-node-template {
local preemptible_minions=""
if [[ "${PREEMPTIBLE_MINION}" == "true" ]]; then
preemptible_minions="--preemptible --maintenance-policy TERMINATE"
fi
fi
while true; do
echo "Attempt ${attempt} to create ${1}" >&2
if ! gcloud compute instance-templates create "$1" \
@@ -412,7 +412,8 @@ function create-node-template {
--image-project="${MINION_IMAGE_PROJECT}" \
--image "${MINION_IMAGE}" \
--tags "${MINION_TAG}" \
--network "${NETWORK}" ${preemptible_minions} \
--network "${NETWORK}" \
${preemptible_minions} \
$2 \
--can-ip-forward \
--metadata-from-file "$3","$4" >&2; then