Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-70371

Could we remove any trailing space from the end of each line in the output of the lsscsi

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0
    • lsscsi
    • None
    • No
    • Low
    • rhel-storage-management
    • ssg_platform_storage
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      1. rpm -q lsscsi
        lsscsi-0.32-15.el10.x86_64

        How reproducible is this bug?:

        Steps to reproduce

      2. # lsscsi > test.txt
      3. # python
      4. >>> from pathlib import Path
      5. >>> p = Path('/root/test.txt')
      6. >>> p.read_text()
        '[21:0:0:1]   disk    COMPELNT Compellent Vol   0702  /dev/sda \n[21:0:2:1]   disk    COMPELNT Compellent Vol   0702  /dev/sdb \n'

      Expected results

      No space at the end of  each line.

      '[21:0:0:1]   disk    COMPELNT Compellent Vol   0702  /dev/sda\n[21:0:2:1]   disk    COMPELNT Compellent Vol   0702  /dev/sdb\n'

      Actual results

              pevans@redhat.com Paul Evans
              rhn-support-zguo Zhaojuan Guo
              Paul Evans Paul Evans
              Zhaojuan Guo Zhaojuan Guo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: