Add --quiet to instance-templates delete.
Otherwise it hangs waiting for confirmation.
This commit is contained in:
		| @@ -498,7 +498,7 @@ function create-node-template() { | |||||||
|   #                 distinguish an ephemeral failed call from a "not-exists". |   #                 distinguish an ephemeral failed call from a "not-exists". | ||||||
|   if gcloud compute instance-templates describe "$template_name" --project "${PROJECT}" &>/dev/null; then |   if gcloud compute instance-templates describe "$template_name" --project "${PROJECT}" &>/dev/null; then | ||||||
|     echo "Instance template ${1} already exists; deleting." >&2 |     echo "Instance template ${1} already exists; deleting." >&2 | ||||||
|     if ! gcloud compute instance-templates delete "$template_name" --project "${PROJECT}" &>/dev/null; then |     if ! gcloud compute instance-templates delete "$template_name" --project "${PROJECT}" --quiet &>/dev/null; then | ||||||
|       echo -e "${color_yellow}Failed to delete existing instance template${color_norm}" >&2 |       echo -e "${color_yellow}Failed to delete existing instance template${color_norm}" >&2 | ||||||
|       exit 2 |       exit 2 | ||||||
|     fi |     fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Matt Liggett
					Matt Liggett