def get_manifest(self, repo_name, tag):
image = None<EOL>repo = self.aws.describe_images(repositoryName=repo_name)<EOL>if '<STR_LIT>' in repo:<EOL><INDENT>for contender in repo.get('<STR_LIT>'):<EOL><INDENT>if tag in contender['<STR_LIT>']:<EOL><INDENT>image = contender<EOL>break<EOL><DEDENT><DEDENT><DEDENT>if image is None:<EOL><INDENT>bot.exit('<STR_LIT>' %(repo_name, digest))<EOL><DEDENT>digest = image['<STR_LIT>']<EOL>digests = self.aws.batch_get_image(repositoryName=repo_name, <EOL>imageIds=[{"<STR_LIT>": digest,<EOL>"<STR_LIT>": tag}])<EOL>self.manifest = json.loads(digests['<STR_LIT>'][<NUM_LIT:0>]['<STR_LIT>'])<EOL>return self.manifest<EOL>
return the image manifest via the aws client, saved in self.manifest