Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/facter/framework/cli/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ def add_commands_to_help
Cli.commands.values
.select { |command_class| command_class.instance_of?(Thor::Command) }
.each do |command|
help_command_options << build_option(
command['name'],
[command['usage'].split(',')[1]],
command['description']
)
help_command_options << build_option(
command['name'],
[command['usage'].split(',')[1]],
command['description']
)
end

help_command_options
Expand Down
2 changes: 1 addition & 1 deletion lib/facter/resolvers/aix/ffi/ffi_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.read_load_averages

return if Libc.getkerninfo(KINFO_READ | KINFO_GET_AVENRUN, averages, averages_size, 0).negative?

averages.read_array_of_long_long(3).map { |x| (x / 65_536.0) }
averages.read_array_of_long_long(3).map { |x| x / 65_536.0 }
end

def self.read_interfaces
Expand Down
2 changes: 1 addition & 1 deletion lib/facter/resolvers/aix/networking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def post_resolve(fact_name, _options)
def read_netstat(fact_name)
@fact_list[:interfaces] = {}
output = Facter::Core::Execution.execute('netstat -rn', logger: log)
output = output.each_line.select { |line| (line =~ /\s\s[0-9]+.[0-9]+.[0-9]+.[0-9]+|\s\s.*:[0-9a-f]+/) }
output = output.each_line.select { |line| line =~ /\s\s[0-9]+.[0-9]+.[0-9]+.[0-9]+|\s\s.*:[0-9a-f]+/ }
@fact_list[:interfaces] = load_interfaces

populate_with_mtu_and_mac!(@fact_list[:interfaces])
Expand Down
2 changes: 1 addition & 1 deletion lib/facter/resolvers/linux/processors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def physical_devices_count
.select { |dir| dir =~ /cpu[0-9]+$/ }
.select { |dir| File.exist?("/sys/devices/system/cpu/#{dir}/topology/physical_package_id") }
.map do |dir|
Facter::Util::FileHelper.safe_read("/sys/devices/system/cpu/#{dir}/topology/physical_package_id").strip
Facter::Util::FileHelper.safe_read("/sys/devices/system/cpu/#{dir}/topology/physical_package_id").strip
end
.uniq.count
end
Expand Down
2 changes: 1 addition & 1 deletion openfact.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'ffi', '>= 1.15.5', '< 1.18.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2'
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rubocop', '~> 1.28', '< 1.85'
spec.add_development_dependency 'rubocop', '~> 1.86.1'
spec.add_development_dependency 'rubocop-performance', '~> 1.5'
spec.add_development_dependency 'rubocop-rake', '< 1'
spec.add_development_dependency 'rubocop-rspec', '>= 2.10', '< 4'
Expand Down
Loading