Fix openstack_check_api for unknown service

Change-Id: Ia37ca1c3326d45623cf1d6aabb4c454d07328e83
This commit is contained in:
Swann Croiset 2017-01-10 11:51:01 +01:00
parent 52d517798d
commit a57116a448
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'])