hobo agent: skip secondary wcs sites (#15508)

This commit is contained in:
Frédéric Péters 2017-03-20 10:18:52 +01:00
parent 350879ae00
commit 6c53489e0e
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ class Command(hobo_deploy.Command):
our_key = this['secret_key']
for service in services:
if (service.get('this') or not service.get('secret_key')
or service['service-id'] != 'wcs' or not service.get('base_url')):
or service['service-id'] != 'wcs' or not service.get('base_url')
or service.get('secondary')):
continue
base_url = service['base_url']
schema = (urlparse.urlparse(base_url).netloc.split(':')[0]