Skip to content

Commit

Permalink
Merge pull request #736 from trickyearlobe/fix_cisco_getting_detected…
Browse files Browse the repository at this point in the history
…_as_arista

Prevent Cisco devices being detected as Arista
  • Loading branch information
clintoncwolfe authored Sep 30, 2022
2 parents d818a57 + dc8cf87 commit 80f2fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/train/platforms/detect/specifications/os.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def self.load_bsd
def self.load_other
plat.family("arista_eos").title("Arista EOS Family").in_family("os")
.detect do
true
!@backend.run_command("show version").stdout.match(/Arista/).nil?
end

declare_instance("arista_eos", "Arista EOS", "arista_eos") do
Expand Down

0 comments on commit 80f2fe6

Please sign in to comment.