Skip to content

Commit

Permalink
Fix broken version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Nov 6, 2024
1 parent 240a32c commit b759402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/junos-ez/facts/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
swver = ndev.rpc.command "show version"
end

if swver.name == 'multi-routing-engine-results'
if swver.at_xpath 'multi-routing-engine-results'
swver_infos = swver.xpath('//software-information')
swver_infos.each do |re_sw|
re_name = re_sw.xpath('preceding-sibling::re-name').text.upcase
Expand Down

0 comments on commit b759402

Please sign in to comment.