diff options
author | ansible-zuul[bot] <48994755+ansible-zuul[bot]@users.noreply.github.com> | 2019-08-09 19:11:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 19:11:48 +0000 |
commit | 66a01fb3cdcedff9205b2295870a7e1629bbae69 (patch) | |
tree | be8d5d5490ec5c49a2f33b83184e35d58d635895 /plugins/modules/vyos_ping.py | |
parent | fbe294b702e757252a66f64edf66bce060e87494 (diff) | |
parent | 29c342fa51c7a9866366cfc20968be7270e02fc5 (diff) | |
download | vyos.vyos-66a01fb3cdcedff9205b2295870a7e1629bbae69.tar.gz vyos.vyos-66a01fb3cdcedff9205b2295870a7e1629bbae69.zip |
Merge pull request #10 from ansible-network/bt_79
79
Reviewed-by: Paul Belanger
https://github.com/pabelanger
Diffstat (limited to 'plugins/modules/vyos_ping.py')
-rw-r--r-- | plugins/modules/vyos_ping.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/modules/vyos_ping.py b/plugins/modules/vyos_ping.py index 9e99d488..c770804d 100644 --- a/plugins/modules/vyos_ping.py +++ b/plugins/modules/vyos_ping.py @@ -154,7 +154,9 @@ def main(): ttl=dict(type="int"), size=dict(type="int"), interval=dict(type="int"), - state=dict(type="str", choices=["absent", "present"], default="present"), + state=dict( + type="str", choices=["absent", "present"], default="present" + ), ) argument_spec.update(vyos_argument_spec) @@ -174,7 +176,9 @@ def main(): if warnings: results["warnings"] = warnings - results["commands"] = [build_ping(dest, count, size, interval, source, ttl)] + results["commands"] = [ + build_ping(dest, count, size, interval, source, ttl) + ] ping_results = run_commands(module, commands=results["commands"]) ping_results_list = ping_results[0].split("\n") |