mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-08 19:50:30 -07:00
define choices for backup_action in argument_spec
This commit is contained in:
parent
53b5ce42ae
commit
5a3e20faad
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ options:
|
|||
- If V(update_vmid), the module will update backup job with new VM ID.
|
||||
- If V(delete_vmid), the module will remove the VM ID from all backup jobs where the VM ID has existed.
|
||||
required: true
|
||||
choices: [update_vmid, delete_vmid]
|
||||
choices: ["update_vmid", "delete_vmid"]
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
|
@ -180,7 +180,7 @@ def main():
|
|||
vm_name=dict(type='str'),
|
||||
vm_id=dict(type='str'),
|
||||
backup_id=dict(type='str'),
|
||||
backup_action=dict(type='str', required=True)
|
||||
backup_action=dict(choices=['update_vmid', 'delete_vmid'], required=True)
|
||||
)
|
||||
args.update(backup_schedule_args)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue