lib/resolvers/aix/partitions.rb in facter-4.0.20 vs lib/resolvers/aix/partitions.rb in facter-4.0.21
- old
+ new
@@ -2,11 +2,10 @@
module Facter
module Resolvers
module Aix
class Partitions < BaseResolver
- @log = Facter::Log.new(self)
@semaphore = Mutex.new
@fact_list ||= {}
class << self
private
@@ -38,14 +37,12 @@
@fact_list[fact_name]
end
def populate_from_lslv(name)
- stdout, stderr, _status = Open3.capture3("lslv -L #{name}")
- if stdout.empty?
- @log.debug(stderr)
- return
- end
+ stdout = Facter::Core::Execution.execute("lslv -L #{name}", logger: log)
+
+ return if stdout.empty?
info_hash = extract_info(stdout)
size_bytes = compute_size(info_hash)
part_info = {