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

- old
+ new

@@ -2,11 +2,10 @@ module Facter module Resolvers module Solaris class ZFS < BaseResolver - @log = Facter::Log.new(self) @semaphore = Mutex.new @fact_list ||= {} class << self private @@ -18,10 +17,10 @@ build_zfs_facts @fact_list[fact_name] end def build_zfs_facts - output, _status = Open3.capture2('zfs upgrade -v') + output = Facter::Core::Execution.execute('zfs upgrade -v', logger: log) features_list = output.scan(/^\s+(\d+)/).flatten return if features_list.empty? @fact_list[:zfs_featurenumbers] = features_list.join(',')