Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-39771

CLI: mirror flatpak: missing product ID arg shows Ruby error

XMLWordPrintable

    • None
    • None
    • None
    • Automated

      Tested on Foreman 3.16/Katello 4.18

      If you try to mirror a Flatpak repository and miss the product ID, the error message is a bit cryptic. Instead, it should tell users that either the product name or product id is mandatory:

      <pre>
      $ hammer flatpak-remote remote-repository mirror --id 1257 --flatpak-remote-id 2
      Could not mirror the Flatpak remote repository:
      undefined method `id' for nil:NilClass
      $ hammer flatpak-remote remote-repository mirror --id 1257 --flatpak-remote-id 2 --product-id 354
      [........................................................................................] [100%]
      $ echo $?
      0
      </pre>

      "foreman-debug" shows a lot of stuff; see the attached log.

              rhn-engineering-qjames Quinn James
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Vladimír Sedmík Vladimír Sedmík
              Samir Jha Samir Jha
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: