From bf88dfebc6d52659b2c39a134b92088246824bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 22 May 2015 13:28:34 +0200 Subject: [PATCH] hobo: handle services without a secret key (#7192) --- wcs/ctl/check_hobos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcs/ctl/check_hobos.py b/wcs/ctl/check_hobos.py index 19af32cb6..a39eb28c4 100644 --- a/wcs/ctl/check_hobos.py +++ b/wcs/ctl/check_hobos.py @@ -239,6 +239,8 @@ class CmdCheckHobos(Command): api_secrets = {} for service in self.all_services.get('services', []): variables['%s_url' % service.get('slug')] = service.get('base_url') + if not service.get('secret_key'): + continue domain = urlparse.urlparse(service.get('base_url')).netloc.split(':')[0] api_secrets[domain] = hashlib.sha1(domain + service.get('secret_key')).hexdigest() if self.all_services.get('variables'):