Skip to content

Commit

Permalink
Merge pull request #1939 from sgissi/fix_docker_inspect_multiline
Browse files Browse the repository at this point in the history
Fix Rockon unknown state due to multi-line docker inspect
  • Loading branch information
schakrava authored Jul 10, 2018
2 parents fd3d072 + fd1b2e1 commit 5cafe51
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 5cafe51

Please sign in to comment.