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

[Asset generation] Incorrect error message when --chart-dir is not set for generate command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Minor Minor
    • MTA 7.3.1
    • MTA 7.3.0
    • MTA CLI
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

      When the --chart-dir flag is not set for the mta-cli generate command, it displays an incorrect error message.
      $ mta-cli generate helm --chart-dir --input /tmp/discovery.yaml --output-dir /tmp/deployment
      Error: required flag(s) "input" not set

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

      $ mta-cli version
      version: 7.3.0
      SHA: 503b861109b34be42dcb362c805099d170790398
      image: registry.redhat.io/mta/mta-cli-rhel9:7.3.0

      How reproducible:

      Always

      Steps to Reproduce:

      1.
      2.
      3.

      Actual results:

      Incorrect error message displayed when --chart-dir is not set for generate command

      Expected results:

      A more appropriate message such as this should be displayed.
      Error: required flag(s) "chart-dir" not set

      Additional info:

              gciavarrini@redhat.com Gloria Ciavarrini
              rhn-support-nachandr Nandini Chandra
              Nandini Chandra Nandini Chandra
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: