Commit b5038b43 authored by Daniele Venzano's avatar Daniele Venzano

Fix pylint warnings

parent 6b6102a6
......@@ -45,7 +45,7 @@ class ZoeMonitor(threading.Thread):
while True:
try:
swarm.event_listener(lambda x: self._event_cb(x))
except:
except Exception:
log.exception('Exception in monitor thread')
time.sleep(1) # wait a bit before retrying the connection
......
......@@ -136,4 +136,3 @@ class ZoeScheduler:
'queue_length': len(self.fifo_queue),
'termination_threads_count': len(self.async_threads)
}
......@@ -88,9 +88,9 @@ def _spawn_service(execution: Execution, service: Service, env_subst_dict: dict)
_gen_environment(service, env_subst_dict, copts)
for p in service.description['ports']:
if 'expose' in p and p['expose']:
copts.ports.append(p['port_number']) # FIXME UDP ports?
for port in service.description['ports']:
if 'expose' in port and port['expose']:
copts.ports.append(port['port_number']) # FIXME UDP ports?
if 'volumes' in service.description:
for path, mount_point, readonly in service.description['volumes']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment