Merge pull request #45860 from mml/instance-templates-delete

Automatic merge from submit-queue

Add --quiet to instance-templates delete.
This commit is contained in:
Kubernetes Submit Queue 2017-05-16 15:52:13 -07:00 committed by GitHub
commit 0cf7fd85e4

View File

@ -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