Skip to content

Commit

Permalink
chore(containers): ignore stderr of `gcloud container images list-tag…
Browse files Browse the repository at this point in the history
…s` (#22) (#24)

A manual cherry-pick of #20

Co-authored-by: Michael Plump <plumpy@gmail.com>
  • Loading branch information
spinnakerbot and plumpy authored Feb 27, 2020
1 parent 3d51a68 commit 9545b73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/buildtool/container_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import logging
import os
import shutil
import subprocess

from buildtool import (
SPINNAKER_HALYARD_REPOSITORY_NAME,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9545b73

Please sign in to comment.