Skip to content

Commit 239c015

Browse files
committed
Added support for containers without nginx.conf
1 parent e526665 commit 239c015

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

layersbox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,12 @@ def update_adapter(config, service_directory, service_name):
496496
# update IPs of all services
497497
services = config['services']
498498
for service_name, service in services.iteritems():
499-
servicesToUpdate.append(service_name)
499+
if os.path.isfile(join(service_directory, service_name, "nginx.conf")):
500+
servicesToUpdate.append(service_name)
500501
else:
501502
# parse nginx.conf of the service to get a list of all its proxied containers
502-
servicesToUpdate.append(service_name)
503+
if os.path.isfile(join(service_directory, service_name, "nginx.conf")):
504+
servicesToUpdate.append(service_name)
503505

504506
proxied_servers = []
505507
proxied_ips = {}

0 commit comments

Comments
 (0)