Skip to content

Commit

Permalink
Modified docker inspect format to avoid multiple lines (fixes #1933)
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Gissi <[email protected]>
  • Loading branch information
sgissi committed Jun 27, 2018
1 parent fd3d072 commit fd1b2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rockstor/storageadmin/views/rockon_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(':')
Expand Down

0 comments on commit fd1b2e1

Please sign in to comment.