Skip to content

Commit

Permalink
Merge pull request #32 from jacekszubert/default_schema
Browse files Browse the repository at this point in the history
Use http as a default schema
  • Loading branch information
mtakaki committed Mar 8, 2017
2 parents 6c1b959 + ab99577 commit ffa141d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cachet_url_monitor/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ def evaluate(self):
self.logger.warning(self.message)
self.status = st.COMPONENT_STATUS_PERFORMANCE_ISSUES
return
except requests.exceptions.MissingSchema:
self.logger.info('No schema specified - using default http://')
self.endpoint_url = 'http://%s' % self.endpoint_url
self.evaluate()

# We initially assume the API is healthy.
self.status = st.COMPONENT_STATUS_OPERATIONAL
Expand Down

0 comments on commit ffa141d

Please sign in to comment.