image list pages even when output is not a tty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
openstack image client pages its output even when the output of the command is not a tty. This means that scripts operating on an image list may not get a complete list of images.
To reproduce:
$ venv-openstack/
openstack 2.3.0
$ venv-openstack/
2.0.0
$ OS_CLIENT_
29
$ OS_CLIENT_
47
Notice that the total number of lines changes when it should be constant because the output is a pipe. This was also observed when redirecting output to a normal file.
I reproduced by adding tons of images:
`openstack image create 1`
`openstack image create 2`
... (a bunch of times)
And then ran
`openstack image list | wc -l`
and
`openstack image-list --limit 500 | wc -l`
(The --limit 500 is to force osc to show all images (I don't have more than 500), ie making the first page show everything)
The outputs are indeed, different.