1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible
Will Thames 5900fee67a Fix ec2_snapshot_facts for python3
Avoid the following seen when running ec2_ami tests on python3,
presumably because the return type of `map` is different between
python2 and python3.

```
Traceback (most recent call last):
  File "/tmp/ansible_e44v27uj/ansible_module_ec2_snapshot_facts.py", line 242, in <module>
    main()
  File "/tmp/ansible_e44v27uj/ansible_module_ec2_snapshot_facts.py", line 238, in main
    list_ec2_snapshots(connection, module)
  File "/tmp/ansible_e44v27uj/ansible_module_ec2_snapshot_facts.py", line 193, in list_ec2_snapshots
    snapshots = connection.describe_snapshots(SnapshotIds=snapshot_ids, OwnerIds=owner_ids, RestorableByUserIds=restorable_by_user_ids, Filters=filters)
  File "/usr/local/lib/python3.5/dist-packages/botocore/client.py", line 312, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/usr/local/lib/python3.5/dist-packages/botocore/client.py", line 575, in _make_api_call
    api_params, operation_model, context=request_context)
  File "/usr/local/lib/python3.5/dist-packages/botocore/client.py", line 630, in _convert_to_request_dict
    api_params, operation_model)
  File "/usr/local/lib/python3.5/dist-packages/botocore/validate.py", line 291, in serialize_to_request
    raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter OwnerIds, value: <map object at 0x7ff577511048>, type: <class 'map'>, valid types: <class 'list'>, <class 'tuple'>
```

https://github.com/ansible/ansible/pull/30435#issuecomment-330750498
2017-09-27 20:38:39 -07:00
..
cli fixed pull's ansible/git invocation options (#30938) 2017-09-27 19:50:36 -04:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config add ability to set default tags in config 2017-09-22 19:21:13 -04:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor made callbacks backwards compatible (#30625) 2017-09-20 15:20:19 -04:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory use set to quicken group host membership 2017-09-22 19:07:37 -04:00
module_utils vmware_guest: tests for createvm+modifyvm tasks (#30959) 2017-09-27 18:10:08 -04:00
modules Fix ec2_snapshot_facts for python3 2017-09-27 20:38:39 -07:00
parsing Use vault_id when encrypted via vault-edit (#30772) 2017-09-26 12:28:31 -04:00
playbook avoid include_Xs conflating vars with options (#30954) 2017-09-27 19:53:10 -04:00
plugins clarified dig module uses dnspython 2017-09-27 20:59:03 -04:00
template Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
utils Fix encoding error with path to ssh 2017-09-22 15:31:21 -07:00
vars remove fact namespacing 2017-09-10 17:37:52 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py moved from eval to templating + literal_eval 2017-09-20 21:35:02 -04:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00