diff --git a/lib/facter/pe_status_check.rb b/lib/facter/pe_status_check.rb index d86a1a5b..04850042 100644 --- a/lib/facter/pe_status_check.rb +++ b/lib/facter/pe_status_check.rb @@ -236,13 +236,13 @@ # Is there a valid license present, which does not expire in 90 days # Also takes into account if the license type is Perpetual next unless ['primary'].include?(Facter.value('pe_status_check_role')) - + # Check for suite license file suite_license_file = '/etc/puppetlabs/suite-license.lic' # Check for license key file license_file = '/etc/puppetlabs/license.key' - + if File.exist?(suite_license_file) # Presence of file satisfy check validity = true