From bd500e34cc9ab38cc038a421479cdca8e79858d8 Mon Sep 17 00:00:00 2001 From: Ryan Yee Date: Tue, 9 Jan 2024 09:54:38 -0800 Subject: [PATCH] Update node_methods for rpm_version and fb_slowroll for OEL9 Differential Revision: D52569881 fbshipit-source-id: 1d190e5542c5ad74bc73d1d146a353b5655a0b42 --- cookbooks/fb_helpers/libraries/node_methods.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/fb_helpers/libraries/node_methods.rb b/cookbooks/fb_helpers/libraries/node_methods.rb index 19c4fa36..86928ca1 100644 --- a/cookbooks/fb_helpers/libraries/node_methods.rb +++ b/cookbooks/fb_helpers/libraries/node_methods.rb @@ -997,7 +997,8 @@ def filesystem_data # returns the version-release of an rpm installed, or nil if not present def rpm_version(name) - if (self.centos? && !self.centos7?) || self.fedora? || self.redhat8? || self.oracle8? || self.redhat9? + if (self.centos? && !self.centos7?) || self.fedora? || self.redhat8? || self.oracle8? || self.redhat9? || + self.oracle9? # returns epoch.version v = Chef::Provider::Package::Dnf::PythonHelper.instance. package_query(:whatinstalled, name).version