Skip to content

Commit

Permalink
Update node_methods for rpm_version and fb_slowroll for OEL9
Browse files Browse the repository at this point in the history
Differential Revision: D52569881

fbshipit-source-id: 1d190e5542c5ad74bc73d1d146a353b5655a0b42
  • Loading branch information
yee-unit authored and facebook-github-bot committed Jan 9, 2024
1 parent 23d7669 commit 9a4450b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion itchef/cookbooks/fb_helpers/libraries/node_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a4450b

Please sign in to comment.