lib/resolvers/aix/partitions.rb in facter-4.0.18 vs lib/resolvers/aix/partitions.rb in facter-4.0.19
- old
+ new
@@ -50,10 +50,10 @@
size_bytes = compute_size(info_hash)
part_info = {
filesystem: info_hash['TYPE'],
size_bytes: size_bytes,
- size: Facter::BytesToHumanReadable.convert(size_bytes)
+ size: Facter::FactsUtils::UnitConverter.bytes_to_human_readable(size_bytes)
}
mount = info_hash['MOUNTPOINT']
label = info_hash['LABEL']
part_info[:mount] = mount unless %r{N/A} =~ mount
part_info[:label] = label unless /None/ =~ label