AWS is case-sensitive when using is-public to filter for AMIs and expects lower-case values

This commit is contained in:
Jon Beilke 2018-12-06 12:18:59 -06:00
commit a744adbcc5
2 changed files with 3 additions and 3 deletions

View file

@ -1115,7 +1115,7 @@ class Ami(TaggedEC2Resource):
elif filter_name == 'image-id':
return self.id
elif filter_name == 'is-public':
return str(self.is_public)
return self.is_public_string
elif filter_name == 'state':
return self.state
elif filter_name == 'name':