Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1131

convert2rhel --help does not work as an unprivileged user

XMLWordPrintable

    • False
    • False
    • Hide

      None

      Show
      None
    • 2
    • 2023-R4, 2024-R1
    • Testable

      Convert2rhel performs a check to see if the user is root since the analysis and conversion both require root permissions.  Additionally, the application lock that is new in 1.4 also requires root permissions.

      However, the check for root is happening before we parse the command line.  This means that we cannot print the –help message unless the user is root.  Other, similar programs will print the help message for an unprivileged user (Example: yum --help) so this should be considered a bug.

       

      Acceptance Criteria

      • As an unprivileged user, type{
        Unknown macro: {convert2rhel --help}

        }

      • Convert2rhel prints its help message and exits.
      • Implementation note:  The code for this should not be placed in initialize.py as initialize.py exists for things which need to happen before we import certain other modules. We need to keep that code simple and only put things that are really necessary there.

          There are no Sub-Tasks for this issue.

              fgustavs@redhat.com Freya Gustavsson
              tkuratom@redhat.com Toshio Kuratomi
              Joseph Chapman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: