mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix arguments for pushover module
Since user_key and app_token are used for authentication, I suspect both of them should be kept secret. According to the API manual, https://pushover.net/api priority go from -2 to 2, so the argument should be constrained.
This commit is contained in:
committed by
Matt Clay
parent
eda5e2f571
commit
7c19002f34
@@ -95,9 +95,9 @@ def main():
|
|||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
msg=dict(required=True),
|
msg=dict(required=True),
|
||||||
app_token=dict(required=True),
|
app_token=dict(required=True, no_log=True),
|
||||||
user_key=dict(required=True),
|
user_key=dict(required=True, no_log=True),
|
||||||
pri=dict(required=False, default=0),
|
pri=dict(required=False, default='0', choices=['-2','-1','0','1','2']),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user