From fd1b2e15a3139319d06c06ccfb3d026fe5020763 Mon Sep 17 00:00:00 2001 From: Silvio Gissi Date: Wed, 27 Jun 2018 14:27:49 -0700 Subject: [PATCH] Modified docker inspect format to avoid multiple lines (fixes #1933) Signed-off-by: Silvio Gissi --- src/rockstor/storageadmin/views/rockon_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rockstor/storageadmin/views/rockon_utils.py b/src/rockstor/storageadmin/views/rockon_utils.py index 7484420b0..c7b86346b 100644 --- a/src/rockstor/storageadmin/views/rockon_utils.py +++ b/src/rockstor/storageadmin/views/rockon_utils.py @@ -28,7 +28,7 @@ def container_status(name): state = 'unknown_error' try: o, e, rc = run_command([DOCKER, 'inspect', '-f', - '{{range $key, $value := .State}}{{$key}}:{{$value}},{{ end }}', name]) # noqa E501 + 'Error:{{.State.Error}},ExitCode:{{.State.ExitCode}},Running:{{.State.Running}}', name]) # noqa E501 state_d = {} for i in o[0].split(','): fields = i.split(':')