[openstack-doc-tools] openstack-auto-commands should strip off trailing whitespace

Bug #1342988 reported by Peter Stachowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Medium
Peter Stachowski

Bug Description

Some of the output help from *-manage CLIs (eg. trove-manage) have white-space at the end of the line. This causes the gate-openstack-manuals-tox-checkniceness test to fail on the generated .xml files.

Any trailing white-space should be stripped off by the tool before writing the .xml file.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-doc-tools (master)

Fix proposed to branch: master
Review: https://review.openstack.org/107520

Changed in openstack-manuals:
assignee: nobody → Peter Stachowski (peterstac)
status: New → In Progress
Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

IMO we should patch also the code projects that produce extra whitespace, could you send a patch to trove as well, please?

Changed in openstack-manuals:
importance: Undecided → Medium
Revision history for this message
Peter Stachowski (peterstac) wrote :

I will do that

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-doc-tools (master)

Reviewed: https://review.openstack.org/107520
Committed: https://git.openstack.org/cgit/openstack/openstack-doc-tools/commit/?id=de741f0a2e9beb4aad90cd1d599177b47e658732
Submitter: Jenkins
Branch: master

commit de741f0a2e9beb4aad90cd1d599177b47e658732
Author: Peter Stachowski <email address hidden>
Date: Tue Jul 15 10:23:17 2014 -0400

    Removed trailing whitespace from help output

    Some of the output help from *-manage CLIs (eg. trove-manage) have
    whitespace at the end of the line.
    This causes the gate-openstack-manuals-tox-checkniceness test to fail
    on the generated .xml files.

    Trailing white-space is now stripped off by the tool before writing the
    .xml file.

    Change-Id: I94aa3a02f7bbe2e88beb510551a2aff76ed24f8a
    Closes-Bug: #1342988

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
Peter Stachowski (peterstac) wrote :

I debugged through the print help routine and it turns out it's a bug in argparse.py module of the python libraries. If the next 'part' of the help is longer than the line length and the current line is empty, it'll print out the indent with the empty line. I'll try and see what the best work around is (and submit a bug to python)

Revision history for this message
Peter Stachowski (peterstac) wrote :

The bug only exists in python 2.7 - looks like it's been fixed in 3.4 already, so it'll eventually go away. I'll look at patching it from our side, but it might not be worth the effort.

Revision history for this message
Peter Stachowski (peterstac) wrote :

One more clarification - it's fixed in python 2.7.8 (but not in 2.7.3, which is the version I'm using). Since it will shortly be irrelevant, I'm not going to pursue it further (unless other feel strongly about it).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.