lib/resolvers/aix/utils/odm_query.rb in facter-4.0.15 vs lib/resolvers/aix/utils/odm_query.rb in facter-4.0.16
- old
+ new
@@ -25,12 +25,12 @@
end
def execute
result = nil
REPOS.each do |repo|
- break if result
+ break if result && !result.empty?
- result, _s = Open3.capture2("#{query} #{repo}")
+ result, _stderr, _s = Open3.capture3("#{query} #{repo}")
end
result
end
def query