Skip to content

Commit

Permalink
(maint) Fix for blockdevice_*_size legacy fact on Aix and Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-miclea committed Sep 30, 2020
1 parent d5a0dd6 commit e57fee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/facter/facts/aix/disks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def call_the_resolver

def add_legacy_facts(disks, facts)
disks.each do |disk_name, disk_info|
facts.push(Facter::ResolvedFact.new("blockdevice_#{disk_name}_size", disk_info[:size_bytes].to_s, :legacy))
facts.push(Facter::ResolvedFact.new("blockdevice_#{disk_name}_size", disk_info[:size_bytes], :legacy))
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/facter/facts/solaris/disks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def call_the_resolver

def add_legacy_facts(disks, facts)
disks.each do |disk_name, disk_info|
facts.push(Facter::ResolvedFact.new("blockdevice_#{disk_name}_size", disk_info[:size_bytes].to_s, :legacy))
facts.push(Facter::ResolvedFact.new("blockdevice_#{disk_name}_size", disk_info[:size_bytes], :legacy))
facts.push(Facter::ResolvedFact.new("blockdevice_#{disk_name}_vendor", disk_info[:vendor], :legacy))
end
end
Expand Down

0 comments on commit e57fee9

Please sign in to comment.