Skip to content

Commit

Permalink
Merge pull request #737 from trickyearlobe/fix_cisco_nexus_version_de…
Browse files Browse the repository at this point in the history
…tection

Fix Cisco Nexus version detection
  • Loading branch information
clintoncwolfe authored Sep 30, 2022
2 parents 80f2fe6 + d79e119 commit 673ec99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/train/platforms/detect/helpers/os_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def cisco_show_version
m = res.match(/Cisco Nexus Operating System \(NX-OS\) Software/)
unless m.nil?
v = res[/^\s*system:\s+version (\d+\.\d+)/, 1]
v ||= res[/NXOS: version (\d+\.\d+)/, 1]
return @cache[:cisco] = { version: v, type: "nexus" }
end

Expand Down

0 comments on commit 673ec99

Please sign in to comment.