mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
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:
commit
0cf7fd85e4
@ -498,7 +498,7 @@ function create-node-template() {
|
||||
# distinguish an ephemeral failed call from a "not-exists".
|
||||
if gcloud compute instance-templates describe "$template_name" --project "${PROJECT}" &>/dev/null; then
|
||||
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
|
||||
exit 2
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user