Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

remove backspace characters in json #1147

Closed
wants to merge 1 commit into from

Conversation

MHBauer
Copy link
Contributor

@MHBauer MHBauer commented Aug 13, 2015

I saw some escape chars coming back from /info api.

Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
@chanwit
Copy link
Contributor

chanwit commented Aug 13, 2015

ping @vieux @aluzzardi I guess putting \b is your intention somehow. I saw this in the other parts of info too.

@vieux
Copy link
Contributor

vieux commented Aug 15, 2015

@MHBauer it's on purpose, the current info output look like this:

Containers: 0
Images: 23
Role: primary
Strategy: spread
Filters: affinity, health, constraint, port, dependency
Nodes: 2
 box: 0.0.0.0:4242
  └ Containers: 0
  └ Reserved CPUs: 0 / 2
  └ Reserved Memory: 0 B / 2.038 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=3.16.0-30-generic, operatingsystem=Ubuntu 
 box: 0.0.0.0:4243
  └ Containers: 0
  └ Reserved CPUs: 0 / 2
  └ Reserved Memory: 0 B / 2.038 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=3.16.0-30-generic, operatingsystem=Ubuntu 14.04.2 LTS, storagedriver=aufs
CPUs: 2
Total Memory: 2.038 GiB
Name: box

if you remove the \b it becomes:

Images: 23
 Role: primary
 Strategy: spread
 Filters: affinity, health, constraint, port, dependency
 Nodes: 2
 box: 0.0.0.0:4242
  └ Containers: 0
  └ Reserved CPUs: 0 / 2
  └ Reserved Memory: 0 B / 2.038 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=3.16.0-30-generic, operatingsystem=Ubuntu 
 box: 0.0.0.0:4243
  └ Containers: 0
  └ Reserved CPUs: 0 / 2
  └ Reserved Memory: 0 B / 2.038 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=3.16.0-30-generic, operatingsystem=Ubuntu 14.04.2 LTS, storagedriver=aufs
CPUs: 2
Total Memory: 2.038 GiB
Name: box

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants