Commit da4711f4 authored by Furkan Mustafa's avatar Furkan Mustafa

docker: rename `resp_info` -> `status`

the name was confusing
parent e9bc361b
......@@ -346,19 +346,19 @@ class ImageList(RPCEndpoint):
except Exception as err: # pylint: disable=broad-except
if rpc_endpoint:
if show_progress:
rpc_endpoint.write('{"progress":[{"error":"%s"}]}'%str(err))
rpc_endpoint.write('{"progress":[{"error":"%s"}]}' % str(err))
rpc_endpoint.finish()
else:
rpc_endpoint.write('{"resp_info":[{"error":"%s"}]}'%str(err))
rpc_endpoint.write('{"status":[{"error":"%s"}]}' % str(err))
rpc_endpoint.finish()
return
if rpc_endpoint:
if not wait:
rpc_endpoint.write('{"resp_info":[{"started":true}]}')
rpc_endpoint.write('{"status":[{"started":true}]}')
rpc_endpoint.finish()
else:
rpc_endpoint.write('{"resp_info":[{"started":true}')
rpc_endpoint.write('{"status":[{"started":true}')
rpc_endpoint.flush()
if show_progress:
......
......@@ -149,7 +149,7 @@ async def _pull_without_progress(ctx, imagename, node, wait, force, whole_image_
click.echo(str(err))
return
async for data in json_streamer(resp.content, '$.resp_info[::]'):
async for data in json_streamer(resp.content, '$.status[::]'):
resp_err = data.get('error')
if resp_err:
click.echo('An error occured while pulling the image. {}'.format(resp_err))
......
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