ec2_ami_find: set is_public to 'true' or 'false' (#19250)

* set is_public 'true' or 'false'

Despite being a boolean property, https://github.com/melta/boto/blob/master/boto/ec2/image.py:63 sets is_public = True only if the argument is passed in as the string 'true'. Likewise for False/'false'.

This is a workaround for that bug in boto2, to allow the documented parameter to work with valid yaml values.

fixes #5600

* only set is_public if true
This commit is contained in:
Sean Summers 2016-12-30 09:28:13 -06:00 committed by Ryan Brown
parent fcb1a2b6cc
commit f8fa772a55

View file

@ -357,7 +357,7 @@ def main():
if hypervisor:
filter['hypervisor'] = hypervisor
if is_public:
filter['is_public'] = is_public
filter['is_public'] = 'true'
if name:
filter['name'] = name
if platform: