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.

            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: