Sha256: 144b90f862d58faf2d94dd57831bc9a10a6453c873f739b2fb83176e6aa513c3
Contents?: true
Size: 625 Bytes
Versions: 7
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true module Facts module Sles class Partitions FACT_NAME = 'partitions' def call_the_resolver Facter::ResolvedFact.new(FACT_NAME, partitions) end def partitions parts = Facter::Resolvers::Partitions.resolve(:partitions) mountpoints = Facter::Resolvers::Linux::Mountpoints.resolve(:mountpoints) return parts unless mountpoints mountpoints.each do |mnt| next unless parts[mnt[:device]] parts[mnt[:device]].merge!(mount: mnt[:path]) end parts.empty? ? nil : parts end end end end
Version data entries
7 entries across 7 versions & 1 rubygems