Skip to content

Commit

Permalink
Make backup_plan_names required
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed May 9, 2023
1 parent 25ec5f4 commit 6244a76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/modules/backup_plan_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
backup_plan_names:
type: list
elements: str
default: []
required: true
description:
- Specifies a list of plan names.
- If an empty list is specified, information for the backup plans in the current region is returned.
extends_documentation_fragment:
- amazon.aws.common.modules
- amazon.aws.region.modules
Expand Down Expand Up @@ -123,7 +122,7 @@ def get_backup_plan_detail(client, module):

def main():
argument_spec = dict(
backup_plan_names=dict(type="list", elements="str", default=[]),
backup_plan_names=dict(type="list", elements="str", required=True),
)

module = AnsibleAWSModule(argument_spec=argument_spec, supports_check_mode=True)
Expand Down

0 comments on commit 6244a76

Please sign in to comment.