Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2224

CLI doesn't exit batch mode when failures occur in run-batch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.Final
    • 8.0.0.Beta1
    • CLI
    • None

    Description

      If you execute a batch that fails, the CLI remains in batch mode.

      [domain@localhost:9990 /] batch
      [domain@localhost:9990 / #] /profile=test:add
      #1 /profile=test:add
      [domain@localhost:9990 / #] :bogus
      #2 /:bogus
      [domain@localhost:9990 / #] run-batch
      JBAS014884: No operation named 'bogus' exists at address []
      [domain@localhost:9990 / #]

      This might be intentional (e.g. to let me fix a typo in my ":bogus" op), but if so, perhaps some output explaining that would be good? And for non-interactive mode staying in the batch seems wrong.

      The same problem occurs in the EAP branch, which is where I first noticed it when investigating another issue. In that case the :bogus command wasn't bogus but was a proper op that failed for legitimate reasons.

      Attachments

        Issue Links

          Activity

            People

              olubyans@redhat.com Alexey Loubyansky
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: