From 29c342fa51c7a9866366cfc20968be7270e02fc5 Mon Sep 17 00:00:00 2001 From: "Bradley A. Thornton" Date: Fri, 9 Aug 2019 12:05:55 -0700 Subject: 79 --- plugins/modules/vyos_user.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/modules/vyos_user.py') diff --git a/plugins/modules/vyos_user.py b/plugins/modules/vyos_user.py index 74ec7205..a309d2a5 100644 --- a/plugins/modules/vyos_user.py +++ b/plugins/modules/vyos_user.py @@ -152,7 +152,9 @@ from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.vyos import def validate_level(value, module): if value not in ("admin", "operator"): - module.fail_json(msg="level must be either admin or operator, got %s" % value) + module.fail_json( + msg="level must be either admin or operator, got %s" % value + ) def spec_to_commands(updates, module): @@ -292,7 +294,9 @@ def main(): full_name=dict(), level=dict(aliases=["role"]), configured_password=dict(no_log=True), - update_password=dict(default="always", choices=["on_create", "always"]), + update_password=dict( + default="always", choices=["on_create", "always"] + ), state=dict(default="present", choices=["present", "absent"]), ) -- cgit v1.2.3