Commit 2c62dee7 authored by Daniele Venzano's avatar Daniele Venzano

Fix warnings generated by latest version of pylint

parent ec5cdf94
......@@ -151,7 +151,7 @@ class DockerClient:
'external_address': self.docker_config.external_address
} # type: Dict[str, Any]
try:
info['host'] = container.attrs['Node']['Name'],
info['host'] = container.attrs['Node']['Name']
except KeyError:
info['host'] = 'N/A'
......
......@@ -240,7 +240,7 @@ class SwarmClient:
'labels': container.attrs['Config']['Labels']
} # type: Dict[str, Any]
try:
info['host'] = container.attrs['Node']['Name'],
info['host'] = container.attrs['Node']['Name']
except KeyError:
info['host'] = 'N/A'
......
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