lib/facter/resolvers/aix/partitions.rb in facter-4.3.1 vs lib/facter/resolvers/aix/partitions.rb in facter-4.4.0
- old
+ new
@@ -48,11 +48,11 @@
size_bytes: size_bytes,
size: Facter::Util::Facts::UnitConverter.bytes_to_human_readable(size_bytes)
}
mount = info_hash['MOUNT POINT']
label = info_hash['LABEL']
- part_info[:mount] = mount unless %r{N/A} =~ mount
- part_info[:label] = label.strip unless /None/ =~ label
+ part_info[:mount] = mount unless %r{N/A}.match?(mount)
+ part_info[:label] = label.strip unless /None/.match?(label)
part_info
end
def compute_size(info_hash)
physical_partitions = info_hash['PPs'].to_i