Skip to content

Commit

Permalink
ansible-lint (documentation) cleanup for plugins/ (ansible-collection…
Browse files Browse the repository at this point in the history
…s#2036)

ansible-lint (documentation) cleanup for plugins/

SUMMARY
Fixes an array of ansible-lint failures in plugins/
Adds ansible-lint plugins/ to tox -m lint
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
plugins/
ADDITIONAL INFORMATION
docs changes only (no changelog fragment needed)

Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@6dd4a00
  • Loading branch information
tremble authored and GomathiselviS committed Oct 17, 2024
1 parent 3a7b075 commit 74c1442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions plugins/modules/ec2_placement_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@
community.aws.ec2_placement_group:
name: my-cluster
state: absent
"""


RETURN = r"""
placement_group:
description: Placement group attributes
Expand All @@ -97,7 +95,6 @@
description: PG strategy
type: str
sample: "cluster"
"""

try:
Expand Down
6 changes: 2 additions & 4 deletions plugins/modules/ec2_placement_group_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,13 @@
- name: List two placement groups.
community.aws.ec2_placement_group_info:
names:
- my-cluster
- my-other-cluster
- my-cluster
- my-other-cluster
register: specific_ec2_placement_groups
- ansible.builtin.debug:
msg: >
{{ specific_ec2_placement_groups | json_query("[?name=='my-cluster']") }}
"""


Expand All @@ -68,7 +67,6 @@
description: PG strategy
type: str
sample: "cluster"
"""

try:
Expand Down

0 comments on commit 74c1442

Please sign in to comment.