From 9545b73cf12ff20589ad9bdf12c9b3f90687dc3c Mon Sep 17 00:00:00 2001 From: spinnakerbot Date: Thu, 27 Feb 2020 15:47:56 -0500 Subject: [PATCH] chore(containers): ignore stderr of `gcloud container images list-tags` (#22) (#24) A manual cherry-pick of spinnaker/buildtool#20 Co-authored-by: Michael Plump --- dev/buildtool/container_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/buildtool/container_commands.py b/dev/buildtool/container_commands.py index 019db469..a3e0d4fb 100644 --- a/dev/buildtool/container_commands.py +++ b/dev/buildtool/container_commands.py @@ -18,6 +18,7 @@ import logging import os import shutil +import subprocess from buildtool import ( SPINNAKER_HALYARD_REPOSITORY_NAME, @@ -69,7 +70,7 @@ def __gcb_image_exists(self, image_name, version): options.docker_registry + '/' + image_name, '--filter="%s"' % version, '--format=json'] - got = check_subprocess(' '.join(command)) + got = check_subprocess(' '.join(command), stderr=subprocess.PIPE) if got.strip() != '[]': return True return False