summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_logging.py
diff options
context:
space:
mode:
authorBradley A. Thornton <bthornto@thethorntons.net>2019-08-09 12:05:55 -0700
committerBradley A. Thornton <bthornto@thethorntons.net>2019-08-09 12:05:55 -0700
commit29c342fa51c7a9866366cfc20968be7270e02fc5 (patch)
tree196722c57cca4211e79781edefe1a101d9c4b0c5 /plugins/modules/vyos_logging.py
parent5fb9df4e907a6ab2da7a6c2dafdec9c1971e8d44 (diff)
downloadvyos.vyos-29c342fa51c7a9866366cfc20968be7270e02fc5.tar.gz
vyos.vyos-29c342fa51c7a9866366cfc20968be7270e02fc5.zip
79
Diffstat (limited to 'plugins/modules/vyos_logging.py')
-rw-r--r--plugins/modules/vyos_logging.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/modules/vyos_logging.py b/plugins/modules/vyos_logging.py
index 1fd0ca2..fa0d1cf 100644
--- a/plugins/modules/vyos_logging.py
+++ b/plugins/modules/vyos_logging.py
@@ -192,7 +192,12 @@ def config_to_dict(module):
level = match.group(1).strip("'")
obj.append(
- {"dest": dest, "name": name, "facility": facility, "level": level}
+ {
+ "dest": dest,
+ "name": name,
+ "facility": facility,
+ "level": level,
+ }
)
return obj
@@ -232,7 +237,9 @@ def main():
""" main entry point for module execution
"""
element_spec = dict(
- dest=dict(type="str", choices=["console", "file", "global", "host", "user"]),
+ dest=dict(
+ type="str", choices=["console", "file", "global", "host", "user"]
+ ),
name=dict(type="str"),
facility=dict(type="str"),
level=dict(type="str"),
@@ -260,7 +267,9 @@ def main():
]
module = AnsibleModule(
- argument_spec=argument_spec, required_if=required_if, supports_check_mode=True
+ argument_spec=argument_spec,
+ required_if=required_if,
+ supports_check_mode=True,
)
warnings = list()