Skip to content

Commit

Permalink
Rename collection (ansible-collections#12)
Browse files Browse the repository at this point in the history
* Rename core collection

Rename references to ansible.amazon to amazon.aws.

* Rename community.amazon to community.aws
Fix pep8 line lengths for rewritten amazon.aws imports

* Missed a path in shippable.sh
* Dependency repos moved
  • Loading branch information
jillr committed May 10, 2021
1 parent a55c0d1 commit fd38683
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
24 changes: 12 additions & 12 deletions plugins/modules/ec2_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@
type: str
extends_documentation_fragment:
- ansible.amazon.aws
- ansible.amazon.ec2
- amazon.aws.aws
- amazon.aws.ec2
'''

Expand Down Expand Up @@ -811,16 +811,16 @@
from ansible.module_utils.six import text_type, string_types
from ansible.module_utils.six.moves.urllib import parse as urlparse
from ansible.module_utils._text import to_bytes, to_native
import ansible_collections.ansible.amazon.plugins.module_utils.ec2 as ec2_utils
from ansible_collections.ansible.amazon.plugins.module_utils.ec2 import (AWSRetry,
ansible_dict_to_boto3_filter_list,
compare_aws_tags,
boto3_tag_list_to_ansible_dict,
ansible_dict_to_boto3_tag_list,
camel_dict_to_snake_dict,
)

from ansible_collections.ansible.amazon.plugins.module_utils.aws.core import AnsibleAWSModule
import ansible_collections.amazon.aws.plugins.module_utils.ec2 as ec2_utils
from ansible_collections.amazon.aws.plugins.module_utils.ec2 import (AWSRetry,
ansible_dict_to_boto3_filter_list,
compare_aws_tags,
boto3_tag_list_to_ansible_dict,
ansible_dict_to_boto3_tag_list,
camel_dict_to_snake_dict,
)

from ansible_collections.amazon.aws.plugins.module_utils.aws.core import AnsibleAWSModule

module = None

Expand Down
18 changes: 9 additions & 9 deletions plugins/modules/ec2_instance_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
type: dict
extends_documentation_fragment:
- ansible.amazon.aws
- ansible.amazon.ec2
- amazon.aws.aws
- amazon.aws.ec2
'''

Expand Down Expand Up @@ -503,13 +503,13 @@
HAS_BOTO3 = False

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.ansible.amazon.plugins.module_utils.ec2 import (ansible_dict_to_boto3_filter_list,
boto3_conn,
boto3_tag_list_to_ansible_dict,
camel_dict_to_snake_dict,
ec2_argument_spec,
get_aws_connection_info,
)
from ansible_collections.amazon.aws.plugins.module_utils.ec2 import (ansible_dict_to_boto3_filter_list,
boto3_conn,
boto3_tag_list_to_ansible_dict,
camel_dict_to_snake_dict,
ec2_argument_spec,
get_aws_connection_info,
)


def list_ec2_instances(connection, module):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ dependencies:
- prepare_tests
- setup_ec2
collections:
- ansible.amazon
- amazon.aws
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
security_token: "{{ security_token | default(omit) }}"
region: "{{ aws_region }}"
collections:
- ansible.amazon
- amazon.aws
block:
- debug:
msg: "{{ inventory_hostname }} start: {{ lookup('pipe','date') }}"
Expand Down

0 comments on commit fd38683

Please sign in to comment.