Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
2c62dee7
Commit
2c62dee7
authored
Dec 11, 2017
by
Daniele Venzano
Browse files
Fix warnings generated by latest version of pylint
parent
ec5cdf94
Changes
2
Show whitespace changes
Inline
Side-by-side
zoe_master/backends/docker/api_client.py
View file @
2c62dee7
...
...
@@ -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'
...
...
zoe_master/backends/swarm/api_client.py
View file @
2c62dee7
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment