Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-1320

[CLI] [KANTRA] An extra rule file is always generated when transforming from XML to YAML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • MTA 7.0.0
    • upstream
    • MTA CLI
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      When running the transform subcommand to convert from XML to YAML, an extra file is always generated in a different folder containing multiple rules that aren't in the original XML file 

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

      How reproducible: Always 

      Steps to Reproduce:
      1. Run the following command providing your own paths

      ./kantra transform rules  --input /path/to/xml/folder/ --output /path/to/output/folder

      2. Open the output folder and look for a fodler named 00-discovery

      Actual results:

      A file called 0.yaml (attached) is generated and contains multiple rules that were not in the original XML (attached)

      Expected results:

      The output folder should contain just the generated yaml and log outputs. 

      Additional info:

      Attached to this issue you'll find the XML file used to reproduce this bug and the generated extra yaml file.

        1. 0.yaml
          3 kB
          Alejandro Brugarolas
        2. image-2023-11-13-10-55-37-137.png
          11 kB
          Alejandro Brugarolas
        3. javax-package-custom.windup.xml
          1 kB
          Alejandro Brugarolas

              emcmulla@redhat.com Emily McMullan
              rh-ee-abrugaro Alejandro Brugarolas
              Alejandro Brugarolas Alejandro Brugarolas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: