lib/resolvers/solaris/zpool_resolver.rb in facter-4.0.20 vs lib/resolvers/solaris/zpool_resolver.rb in facter-4.0.21

- old
+ new

@@ -2,11 +2,10 @@ module Facter module Resolvers module Solaris class ZPool < BaseResolver - @log = Facter::Log.new(self) @semaphore = Mutex.new @fact_list ||= {} class << self private @@ -18,10 +17,10 @@ build_zpool_facts @fact_list[fact_name] end def build_zpool_facts - output, _status = Open3.capture2('zpool upgrade -v') + output = Facter::Core::Execution.execute('zpool upgrade -v', logger: log) features_list = output.scan(/^\s+(\d+)/).flatten features_flags = output.scan(/^([a-z0-9_]+)[[:blank:]]*(\(read-only compatible\))?$/).map(&:first) return if features_list.empty?