0001-hobo-deploy-don-t-skip-secondary-services-that-were-.patch
bijoe/hobo_agent/management/commands/hobo_deploy.py | ||
---|---|---|
63 | 63 |
raise RuntimeError('unable to find this service') |
64 | 64 |
our_key = this['secret_key'] |
65 | 65 |
for service in services: |
66 |
base_url = service.get('base_url') |
|
66 | 67 |
if (service.get('this') or not service.get('secret_key') |
67 |
or service['service-id'] != 'wcs' or not service.get('base_url') |
|
68 |
or service.get('secondary')): |
|
68 |
or service['service-id'] != 'wcs' or not service.get('base_url')): |
|
69 |
continue |
|
70 |
elif service.get('secondary') and not config.has_section(base_url): |
|
71 |
# skip secondary instances unless they were already added, |
|
72 |
# in that case they need to be kept uptodate |
|
69 | 73 |
continue |
70 |
base_url = service['base_url'] |
|
71 | 74 |
schema = (urlparse.urlparse(base_url).netloc.split(':')[0] |
72 | 75 |
.replace('.', '_').replace('-', '_')) |
73 | 76 |
orig = urlparse.urlparse(this.get('base_url')).netloc.split(':')[0] |
74 |
- |