Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-28679

roxctl central generate ignoring --output-dir being set in OutputZip

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 4.8.0
    • None
    • CLI(roxctl)
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • Rox Sprint 4.8C - Global, Rox Sprint 4.8D - Global
    • 0

      Expected behavior: When --output-dir is set, roxctl central generate should not output a zip file into STDOUT.

      Actual behavior: The output into STDOUT happens regardless.

      Cause: c.PersistentFlag().Changed("output-dir") is queried during cobra command construction, however this will always return false. It needs to be queried during command execution instead.

              rh-ee-jschnath Jan Schnathmeier (Inactive)
              rh-ee-jschnath Jan Schnathmeier (Inactive)
              Tomasz Janiszewski
              ACS Sensor & Ecosystem
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: