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

Commit

Permalink
Merge pull request #647 from RobertSzkutak/rob
Browse files Browse the repository at this point in the history
Fix for #620 and #224: prevent implicit conversion of nil to string
  • Loading branch information
dmcassel committed Oct 27, 2016
2 parents 305d9c5 + 470ac6b commit ca757f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +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)
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 Expand Up @@ -128,7 +131,7 @@ def info
logger.info "IS_JAR: #{@@is_jar}"
logger.info "Properties:"
@properties.sort {|x,y| x <=> y}.each do |k, v|
logger.info k + ": " + v
logger.info k + ": " + v.to_s
end
end
return true
Expand Down

0 comments on commit ca757f7

Please sign in to comment.