mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 20:24:23 -07:00
Detect VyOS based on /etc/issue (support 1.0.5) (#20221)
* Detect VyOS based on /etc/issue (support 1.0.5) VyOS didn't contain `vyos` in `/proc/version` * Update vyos.py
This commit is contained in:
parent
a43534a4a8
commit
e1b1df3cb1
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ class TerminalModule(TerminalBase):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def guess_network_os(conn):
|
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():
|
if 'VyOS' in stdout.read():
|
||||||
return 'vyos'
|
return 'vyos'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue