diff --git a/lib/train/platforms/detect/helpers/os_common.rb b/lib/train/platforms/detect/helpers/os_common.rb index f08118c3..dc747b38 100644 --- a/lib/train/platforms/detect/helpers/os_common.rb +++ b/lib/train/platforms/detect/helpers/os_common.rb @@ -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