Commit 25546d55 authored by Samuel GAIST's avatar Samuel GAIST

[dock] Remove decode option when reading stats from container

It was already not used when stream is set to false however in
more recent versions of the python docker bindings, an error is
raised if stream is set to false and and decode to true.
parent 30f6bab2
Pipeline #25387 passed with stages
in 35 minutes and 15 seconds
......@@ -482,7 +482,7 @@ class Host(object):
client = docker.APIClient()
data = client.stats(container.id, decode=True, stream=False)
data = client.stats(container.id, stream=False)
# If CPU statistics can't be retrieved
if 'system_cpu_usage' not in data['cpu_stats']:
......
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