summaryrefslogtreecommitdiff
path: root/lib/chef/resource/rhsm_register.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-08 16:20:34 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-08 16:20:34 -0700
commiteefbb39c33394ca8210fd5424eca3539d8adf3ed (patch)
tree48968adb55d48cf084fc29806b2613ca8a573d11 /lib/chef/resource/rhsm_register.rb
parent87d6822119e13515cbe2c67ed908efd283053953 (diff)
downloadchef-eefbb39c33394ca8210fd5424eca3539d8adf3ed.tar.gz
Stop using grep to parse textfaster_rhsm
This one is pretty odd. We would grep the line to see if it includes katello-ca-consumer and then we'd check it again in ruby. Let's just do that work once now. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/rhsm_register.rb')
-rw-r--r--lib/chef/resource/rhsm_register.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/rhsm_register.rb b/lib/chef/resource/rhsm_register.rb
index 7c00a57679..ae031f8c50 100644
--- a/lib/chef/resource/rhsm_register.rb
+++ b/lib/chef/resource/rhsm_register.rb
@@ -139,7 +139,7 @@ class Chef
# @return [Boolean] is katello-ca-consumer installed
#
def katello_cert_rpm_installed?
- shell_out("rpm -qa | grep katello-ca-consumer").stdout.include?("katello-ca-consumer")
+ shell_out("rpm -qa").stdout.include?("katello-ca-consumer")
end
#