File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -659,11 +659,11 @@ def _write_json_file(filename, content):
659
659
def _ecr_login_if_needed (boto_session , image ):
660
660
# Only ECR images need login
661
661
if not ('dkr.ecr' in image and 'amazonaws.com' in image ):
662
- return False
662
+ return
663
663
664
664
# do we have the image?
665
665
if _check_output ('docker images -q %s' % image ).strip ():
666
- return False
666
+ return
667
667
668
668
if not boto_session :
669
669
raise RuntimeError ('A boto session is required to login to ECR.'
@@ -685,7 +685,7 @@ def _ecr_login_if_needed(boto_session, image):
685
685
686
686
def _pull_image (image ):
687
687
pull_image_command = ('docker pull %s' % image ).strip ()
688
- print ('docker command: {}' .format (pull_image_command ))
688
+ logger . info ('docker command: {}' .format (pull_image_command ))
689
689
690
690
subprocess .check_output (pull_image_command , shell = True )
691
- print ('image pulled: {}' .format (image ))
691
+ logger . info ('image pulled: {}' .format (image ))
You can’t perform that action at this time.
0 commit comments