Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Fixes #20985 - improve how k-c-h detects the k-installer version
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and John Mitsch committed Oct 5, 2017
1 parent f75a8cc commit b60ca26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions katello/hostname-change.rb
Expand Up @@ -29,8 +29,7 @@ def initialize(proxy, plural_proxy, proxy_hyphenated, program=nil, scenario=nil,
end

def disable_system_check_option?
katello_installer_rpm = `rpm -qa | grep katello-installer`
katello_installer_version = katello_installer_rpm[/(\d+\.)(\d+\.)(\d+)/]
katello_installer_version = run_cmd("rpm -q --queryformat '%{RPMTAG_VERSION}' katello-installer-base")
Gem::Version.new(katello_installer_version) >= Gem::Version.new("3.2.0")
end

Expand Down

0 comments on commit b60ca26

Please sign in to comment.