mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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:
parent
fcb1a2b6cc
commit
f8fa772a55
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ def main():
|
||||||
if hypervisor:
|
if hypervisor:
|
||||||
filter['hypervisor'] = hypervisor
|
filter['hypervisor'] = hypervisor
|
||||||
if is_public:
|
if is_public:
|
||||||
filter['is_public'] = is_public
|
filter['is_public'] = 'true'
|
||||||
if name:
|
if name:
|
||||||
filter['name'] = name
|
filter['name'] = name
|
||||||
if platform:
|
if platform:
|
||||||
|
|
Loading…
Reference in a new issue