Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Raise an exception instead of setting ml.server to an empty string
  • Loading branch information
RobertSzkutak committed Aug 23, 2016
1 parent b31945e commit 470ac6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/lib/server_config.rb
Expand Up @@ -65,7 +65,9 @@ def initialize(options)
@config_file = @properties["ml.config.file"]

@properties["ml.server"] = @properties["ml.#{@environment}-server"] unless @properties["ml.server"]
if (@properties["ml.server"] == nil) then @properties["ml.server"] = "" end
if (@properties["ml.server"] == nil)
raise "Error! ml.server not set. You may be missing deploy/" + @properties["environment"] + ".properties"
end

@hostname = @properties["ml.server"]
@bootstrap_port_four = @properties["ml.bootstrap-port-four"]
Expand Down

0 comments on commit 470ac6b

Please sign in to comment.