Skip to content

Commit aa88af5

Browse files
committed
Fix new base arguments.
1 parent b32095a commit aa88af5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

plugins/module_utils/utils.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,17 @@ def base_argument_spec():
4141
no_log=True,
4242
fallback=(env_fallback, ["CHECKMK_VAR_AUTOMATION_SECRET"]),
4343
),
44-
4544
automation_auth_type=dict(
46-
type="str", choices=["bearer", "basic", "cookie"], default="bearer"
45+
type="str",
46+
choices=["bearer", "basic", "cookie"],
47+
default="bearer",
48+
fallback=(env_fallback, ["CHECKMK_VAR_AUTH_TYPE"]),
49+
),
50+
automation_auth_cookie=dict(
51+
type="str",
52+
no_log=True,
53+
fallback=(env_fallback, ["CHECKMK_VAR_AUTH_COOKIE"]),
4754
),
48-
automation_auth_cookie=dict(type="str", no_log=True),
4955
)
5056

5157

0 commit comments

Comments
 (0)