diff --git a/lib/junos-ez/facts/version.rb b/lib/junos-ez/facts/version.rb index a26336f..fc830ba 100644 --- a/lib/junos-ez/facts/version.rb +++ b/lib/junos-ez/facts/version.rb @@ -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