Use http as a default schema

This commit is contained in:
Jacek Szubert
2017-03-08 16:55:55 +11:00
parent 6c1b95961e
commit ab9957761c

View File

@@ -150,6 +150,10 @@ class Configuration(object):
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