New module: ec2_instance (#35749)

New module: ec2_instance

Integration tests for ec2_instance
This commit is contained in:
Ryan Brown 2018-02-08 01:50:41 -05:00 committed by Sloane Hertel
parent 663c410da4
commit e71c6d8e17
12 changed files with 2003 additions and 7 deletions

View file

@ -449,7 +449,7 @@ def ansible_dict_to_boto3_filter_list(filters_dict):
Args:
filters_dict (dict): Dict of AWS filters.
Basic Usage:
>>> filters = {'some-aws-id', 'i-01234567'}
>>> filters = {'some-aws-id': 'i-01234567'}
>>> ansible_dict_to_boto3_filter_list(filters)
{
'some-aws-id': 'i-01234567'
@ -776,8 +776,8 @@ def map_complex_type(complex_type, type_map):
def compare_aws_tags(current_tags_dict, new_tags_dict, purge_tags=True):
"""
Compare two dicts of AWS tags. Dicts are expected to of been created using 'boto3_tag_list_to_ansible_dict' helper function.
Two dicts are returned - the first is tags to be set, the second is any tags to remove. Since the AWS APIs differ t
hese may not be able to be used out of the box.
Two dicts are returned - the first is tags to be set, the second is any tags to remove. Since the AWS APIs differ
these may not be able to be used out of the box.
:param current_tags_dict:
:param new_tags_dict: