fix: Prioritize environment-set license server URL to address configuration override issue (#7203)

Signed-off-by: Sonu Saha <ahasunos@gmail.com>
This commit is contained in:
Sonu Saha 2024-11-11 16:06:10 +05:30 committed by GitHub
parent cd9c2272e6
commit 74fbd6f8a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@ ChefLicensing.configure do |config|
config.chef_product_name = "InSpec"
config.chef_entitlement_id = "3ff52c37-e41f-4f6c-ad4d-365192205968"
config.chef_executable_name = "inspec"
config.license_server_url = "https://services.chef.io/licensing"
config.license_server_url = ENV["CHEF_LICENSE_SERVER"] || "https://services.chef.io/licensing"
config.logger = Inspec::Log
end