From e0237315f51a03303902a13c1189957ddcc54390 Mon Sep 17 00:00:00 2001 From: Kazuki Suda Date: Thu, 22 Mar 2018 14:47:33 +0900 Subject: [PATCH] cluster/update-storage-objects.sh: Fix to ignore deleted objects --- cluster/update-storage-objects.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster/update-storage-objects.sh b/cluster/update-storage-objects.sh index 364c1d7e37a..f1c92b87051 100755 --- a/cluster/update-storage-objects.sh +++ b/cluster/update-storage-objects.sh @@ -104,7 +104,8 @@ do # This happens when the instance has been deleted. We can hence ignore # this instance. echo "Looks like ${instance} got deleted. Ignoring it" - continue + success=1 + break fi output=$("${KUBECTL}" replace -f "${filename}" --namespace="${namespace}") || true rm "${filename}"