mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
Use http as a default schema
This commit is contained in:
@@ -150,6 +150,10 @@ class Configuration(object):
|
|||||||
self.logger.warning(self.message)
|
self.logger.warning(self.message)
|
||||||
self.status = st.COMPONENT_STATUS_PERFORMANCE_ISSUES
|
self.status = st.COMPONENT_STATUS_PERFORMANCE_ISSUES
|
||||||
return
|
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.
|
# We initially assume the API is healthy.
|
||||||
self.status = st.COMPONENT_STATUS_OPERATIONAL
|
self.status = st.COMPONENT_STATUS_OPERATIONAL
|
||||||
|
|||||||
Reference in New Issue
Block a user