Issue #1696
closedpulp-admin's line wrapping makes it difficult to process its output without using my soft, human brain
Description
I'm trying to write pulp-smash tests against pulp-admin for the Docker plugin. In testing copying, it is helpful to be able to search for what Image IDs are in a repo so that I can assert that the correct images are getting copied. In doing this, I noticed that the image_ids are getting line wrapped due to some funny indentation:
$ pulp-admin docker repo search image --repo-id 3742cb9b-ff6f-4f88-a271-f83ae8c88e52
Created: 2016-02-18T18:38:14Z
Metadata:
Downloaded: True
Image Id: 17f9eb2bd2b5516249f6b5d9b32197cf752c893963c2d9072f8d389ac7
f6655a
Parent Id: b73cee63551b3aa9ae6893fd34a017d140878e7eadd7e5f66b3eb3069d
8eee16
Pulp User Metadata:
Repo Id: 3742cb9b-ff6f-4f88-a271-f83ae8c88e52
Unit Id: 08d23170-f9c0-4bcd-84fe-d9a2556aa62b
Unit Type Id: docker_image
Updated: 2016-02-18T18:38:14Z
…
Ewwww. In my case, I can use --fields to show the image_id without the other metadata which causes Pulp User Metadata: not to get printed and then it does fit in the line. Users can also set the line width in admin.conf, but I don't think that's particularly friendly either.
Wrapping these fields doesn't make sense for computers, but if you think about it, it also doesn't make sense for soft, human brains either.
I feel like this has been filed before, but I was unable to find the bug. If you can find it, please feel free to mark as a dupe.
Related issues