Skip to content

Commit

Permalink
784666 - ensure host is configured on Katello start-up
Browse files Browse the repository at this point in the history
  • Loading branch information
iNecas committed Jan 26, 2012
1 parent 4cb9288 commit da8c01e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/initializers/app_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ def to_hash
# add a default format for date... without this, rendering a datetime included "UTC" as
# of the string
Time::DATE_FORMATS[:default] = "%Y-%m-%d %H:%M:%S"

unless ::AppConfig.host.present?
raise (_("You must specify host in %s for %s to work properly") % ["katello.yml", AppConfig.app_name])
end

0 comments on commit da8c01e

Please sign in to comment.