[Satellite6] How to get rid of pulp-admin wrapping output to 80 characters?

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.9 or older
    • pulp-admin (any version)

Issue

  • we need to parse output of pulp-admin
  • sometimes the output line exceeds 80 characters and the line is wrapped in the middle of a word / value
  • this makes further parsing of the text redundantly complex

Is there a way to disable the wrapping?

Resolution

In /etc/pulp/admin/admin.conf, uncomment and configure wrap_width: property accordingly, like:

[output]
# poll_frequency_in_seconds: 1
# enable_color: true
# wrap_to_terminal: false
wrap_width: 800

For more KB articles/solutions related to Red Hat Satellite 6.x Pulp 2.0 Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Pulp 2.0-related Issues

SBR
Product(s)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.