This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gather_pages(func, *args, **kwargs): | |
result = func(*args, **kwargs) | |
yield result | |
while 'nextToken' in result: | |
result = func(*args, kwargs, nextToken=result['nextToken']) | |
yield result | |
def describe_all_images(registry_id, repository_name): | |
client = boto3.client('ecr') | |
return [image |