Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Check dashboard config for API host and prot. #69

Closed
wants to merge 1 commit into from

Conversation

nstielau
Copy link
Contributor

This is a config validation fix for issue #62.

@@ -34,6 +34,9 @@ def self.setup(options={})
unless $settings[:dashboard][:user].is_a?(String) && $settings[:dashboard][:password].is_a?(String)
raise('dashboard must have a user and password')
end
unless $settings[:api][:host].is_a?(String) && !$settings[:api][:port].to_i.zero?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it just use "$settings[:api][:port].is_a?(Integer)"? Since this is the validation the API does.

@portertech
Copy link
Contributor

@nstielau I've created #107 for the latest version of the dashboard.

@portertech portertech closed this Mar 25, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants