Skip to content

Commit

Permalink
ec2_security_group: Set rules->group_name's datatype as raw (#971) (#974
Browse files Browse the repository at this point in the history
)

[PR #971/9e7ae6cf backport][stable-4] ec2_security_group: Set rules->group_name's datatype as raw

This is a backport of PR #971 as merged into main (9e7ae6c).
Signed-off-by: GomathiselviS [email protected]
SUMMARY
rules-> group_name can accept values of type list and str.
ISSUE TYPE


Docs Pull Request

COMPONENT NAME

ec2_security_group.py
ADDITIONAL INFORMATION
  • Loading branch information
patchback[bot] authored Aug 23, 2022
1 parent c5d9935 commit ed79b58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- ec2_security_group - set type as ``list`` for rules->group_name as it can accept both ``str`` and ``list`` (https://github.com/ansible-collections/amazon.aws/pull/971).
4 changes: 3 additions & 1 deletion plugins/modules/ec2_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@
- You can specify only one of I(cidr_ip), I(cidr_ipv6), I(ip_prefix), I(group_id)
and I(group_name).
group_name:
type: str
type: list
elements: str
description:
- Name of the Security Group that traffic is coming from.
- If the Security Group doesn't exist a new Security Group will be
created with I(group_desc) as the description.
- I(group_name) can accept values of type str and list.
- You can specify only one of I(cidr_ip), I(cidr_ipv6), I(ip_prefix), I(group_id)
and I(group_name).
group_desc:
Expand Down

0 comments on commit ed79b58

Please sign in to comment.