Skip to content

Commit

Permalink
ecs_tag/efs_tag - add resource_tags as alias for tags (ansible-collec…
Browse files Browse the repository at this point in the history
…tions#1184)

ecs_tag/efs_tag - add resource_tags as alias for tags

SUMMARY
Cleanup related to the tagging fragment
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
ecs_tag
efs_tag
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mark Chappell <None>
  • Loading branch information
tremble authored and abikouo committed Sep 18, 2023
1 parent 1f1760f commit d81af94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ecs_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
- A dictionary of tags to add or remove from the resource.
- If the value provided for a tag is null and I(state=absent), the tag will be removed regardless of its current value.
type: dict
aliases: ['resource_tags']
purge_tags:
description:
- Whether unspecified tags should be removed from the resource.
Expand Down Expand Up @@ -155,7 +156,7 @@ def main():
argument_spec = dict(
cluster_name=dict(required=True),
resource=dict(required=False),
tags=dict(type='dict'),
tags=dict(type='dict', aliases=['resource_tags']),
purge_tags=dict(type='bool', default=False),
state=dict(default='present', choices=['present', 'absent']),
resource_type=dict(default='cluster', choices=['cluster', 'task', 'service', 'task_definition', 'container'])
Expand Down
3 changes: 2 additions & 1 deletion efs_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
- If the value provided for a tag is null and I(state=absent), the tag will be removed regardless of its current value.
type: dict
required: True
aliases: ['resource_tags']
purge_tags:
description:
- Whether unspecified tags should be removed from the resource.
Expand Down Expand Up @@ -124,7 +125,7 @@ def main():
'''
argument_spec = dict(
resource=dict(required=True),
tags=dict(type='dict', required=True),
tags=dict(type='dict', required=True, aliases=['resource_tags']),
purge_tags=dict(type='bool', default=False),
state=dict(default='present', choices=['present', 'absent'])
)
Expand Down

0 comments on commit d81af94

Please sign in to comment.