hobo agent: skip secondary wcs sites (#15508)
This commit is contained in:
parent
350879ae00
commit
6c53489e0e
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue