yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #12359
[Bug 1298907] [NEW] neutron CLI returns CSV with CR character
Public bug reported:
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"
** Affects: neutron
Importance: Undecided
Status: New
--
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 OpenStack Neutron (virtual network service):
New
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/neutron/+bug/1298907/+subscriptions
Follow ups
References