Merge "Fix openstack_check_api for unknown service"

This commit is contained in:
Jenkins 2017-01-10 15:40:05 +00:00 committed by Gerrit Code Review
commit 922660a5fd
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ class APICheckPlugin(openstack.CollectdPlugin):
self.logger.notice(
"No check found for service '%s', skipping it" % name)
status = self.UNKNOWN
check = {}
else:
check = self.CHECK_MAP[name]
url = self._service_url(service['url'], check['path'])