Skip to content

Commit

Permalink
update URL of local advisor engine as it is deployed by the installer
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Jan 27, 2025
1 parent 8ed2f8d commit d565353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/foreman_rh_cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
module ForemanRhCloud
def self.on_premise_url
return unless ForemanRhCloud.with_local_advisor_engine?
port = ENV['ADVISOR_ENGINE_PORT'] || "8000"
ENV['ADVISOR_ENGINE_URL'] || "http://#{ForemanRhCloud.foreman_host.fqdn || 'localhost'}:#{port}"
port = ENV['ADVISOR_ENGINE_PORT'] || "24443"
ENV['ADVISOR_ENGINE_URL'] || "https://localhost:#{port}"
end

def self.env_or_on_premise_url(env_var_name)
Expand Down

0 comments on commit d565353

Please sign in to comment.