diff options
author | John R Barker <john@johnrbarker.com> | 2017-01-13 11:56:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-13 11:56:56 +0000 |
commit | c64b7197a3bdaefc4940fffff0cb2813362d0983 (patch) | |
tree | 7c620c01b4815d8c7d57d468c0c8237f1a974d92 | |
parent | b5985752131e72e79cf264accda9b06578b27b8e (diff) | |
download | ansible-c64b7197a3bdaefc4940fffff0cb2813362d0983.tar.gz |
Detect VyOS based on /etc/issue (support 1.0.5)
VyOS didn't contain `vyos` in `/proc/version`
-rw-r--r-- | lib/ansible/plugins/terminal/vyos.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/terminal/vyos.py b/lib/ansible/plugins/terminal/vyos.py index 309f06a7ac..4128979431 100644 --- a/lib/ansible/plugins/terminal/vyos.py +++ b/lib/ansible/plugins/terminal/vyos.py @@ -46,7 +46,7 @@ class TerminalModule(TerminalBase): @staticmethod def guess_network_os(conn): - stdin, stdout, stderr = conn.exec_command('cat /proc/version') + stdin, stdout, stderr = conn.exec_command('cat /etc/issue') if 'vyos' in stdout.read(): - return 'vyos' + return 'VyOS' |