lib/facter/facts/linux/os/architecture.rb in facter-4.3.1 vs lib/facter/facts/linux/os/architecture.rb in facter-4.4.0
- old
+ new
@@ -8,10 +8,10 @@
ALIASES = 'architecture'
def call_the_resolver
fact_value = Facter::Resolvers::Uname.resolve(:machine)
- fact_value = 'i386' if fact_value =~ /i[3456]86|pentium/
+ fact_value = 'i386' if /i[3456]86|pentium/.match?(fact_value)
[Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)]
end
end
end