← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1298907] Re: neutron CLI returns CSV with CR character

 

Surely this is not a neutron issue, but a python-neutronclient one.
Moreover, the root cause of the issue might lie in cliff or other dependent libraries.

** Also affects: python-neutronclient
   Importance: Undecided
       Status: New

** No longer affects: neutron

** Changed in: python-neutronclient
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1298907

Title:
  neutron CLI returns CSV with CR character

Status in Python client library for Neutron:
  Confirmed

Bug description:
  I noticed that neutron commands return windows style new lines when used with "-f csv" option:
  $ neutron net-list -c id -f csv|head -1|od -A x -t x1z -v
  000000 22 69 64 22 0d 0a                                >"id"..<
  000006

  This causes problems in bash loops:
  $ set -x
  $ for i in $(neutron net-list -c id -f csv);do neutron net-show $i;done
  <output remove>
  + for i in '$(neutron net-list -c id -f csv)'
  ' neutron net-show '"xxxxxxxxxxxxxxxxxxxxxxx"
  'nable to find network with name '"xxxxxxxxxxxxxxxxxxxxxxx"

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-neutronclient/+bug/1298907/+subscriptions


References