Add filter for containers
The filter will only consider containers that have domains configured.
This commit is contained in:
parent
b1c32049a0
commit
0a39d8c8b1
9
start.py
9
start.py
@ -153,6 +153,9 @@ if __name__ == '__main__':
|
||||
event = json.loads(line_str)
|
||||
|
||||
if event['Action'] in ['start', 'destroy']:
|
||||
resolved_domains = list_domains.get_resolving_domains_from_containers(client)
|
||||
create_cert_data_standalone(resolved_domains)
|
||||
create_haproxy_cert()
|
||||
# check if there is any domain name configured
|
||||
container_id = event['id']
|
||||
if len(list_domains.handle_container()) > 0:
|
||||
resolved_domains = list_domains.get_resolving_domains_from_containers(client)
|
||||
create_cert_data_standalone(resolved_domains)
|
||||
create_haproxy_cert()
|
||||
|
Loading…
Reference in New Issue
Block a user