Skip to content

Commit c68e710

Browse files
committed
Change state from being required to default to present. Fixes #996.
1 parent 44df3f3 commit c68e710

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

plugins/modules/password.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
6666
state:
6767
description: create/update or delete a password.
68-
required: true
68+
default: present
6969
choices: ["present", "absent"]
7070
type: str
7171
@@ -217,11 +217,7 @@ def run_module():
217217
password=dict(type="str", required=False, no_log=True),
218218
owner=dict(type="str", required=False),
219219
shared=dict(type="raw", required=False),
220-
state=dict(
221-
type="str",
222-
choices=["present", "absent"],
223-
required=True,
224-
),
220+
state=dict(type="str", default="present", choices=["present", "absent"]),
225221
)
226222

227223
module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=False)

0 commit comments

Comments
 (0)