Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-15914

[2.12] GRC: policy dryrun CLI does not properly handle multiple object templates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • ACM 2.12.2
    • None
    • GRC
    • GRC Sprint 2024-23
    • Moderate
    • None

      Description of problem:

      When using the dryrun CLI, if multiple object templates are provided, either directly or via `object-templates-raw`, the output does not consider all of them correctly, only reporting the correct status for the first object template.

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:

      1. Create a YAML file with a ConfigurationPolicy with multiple object templates
      2. Run it through the dryrun CLI, providing inputs so that some of the templates should be compliant, and others should not.

      Actual results:

      Some templates have incorrect compliances.

      Expected results:

      All templates have the correct compliance.

      Additional info:

              jkulikau@redhat.com Justin Kulikauskas
              jkulikau@redhat.com Justin Kulikauskas
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: