summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_command.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_command.py
parent5fb9df4e907a6ab2da7a6c2dafdec9c1971e8d44 (diff)
downloadvyos.vyos-29c342fa51c7a9866366cfc20968be7270e02fc5.tar.gz
vyos.vyos-29c342fa51c7a9866366cfc20968be7270e02fc5.zip
79
Diffstat (limited to 'plugins/modules/vyos_command.py')
-rw-r--r--plugins/modules/vyos_command.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/modules/vyos_command.py b/plugins/modules/vyos_command.py
index a3593bab..b812fae4 100644
--- a/plugins/modules/vyos_command.py
+++ b/plugins/modules/vyos_command.py
@@ -143,7 +143,10 @@ import time
from ansible.module_utils._text import to_text
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.network.common.parsing import Conditional
-from ansible.module_utils.network.common.utils import transform_commands, to_lines
+from ansible.module_utils.network.common.utils import (
+ transform_commands,
+ to_lines,
+)
from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.vyos import (
run_commands,
)
@@ -215,7 +218,9 @@ def main():
msg = "One or more conditional statements have not been satisfied"
module.fail_json(msg=msg, failed_conditions=failed_conditions)
- result.update({"stdout": responses, "stdout_lines": list(to_lines(responses))})
+ result.update(
+ {"stdout": responses, "stdout_lines": list(to_lines(responses))}
+ )
module.exit_json(**result)