Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-876

Reload or Shutdown inside IF statement is performed before the if/else block batch is executed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.CR2
    • 2.0.0.Beta1
    • CLI
    • None

      Executing a reload or shutdown inside an if/else block results in the reload or restart occurring before the other commands in the batch are executed.

      if (outcome == success) of /subsystem=logging/logger=org.jboss.as.cli:read-resource()
         /subsystem=logging:write-attribute(name=use-deployment-logging-config
         shutdown --restart=true
      end-if
      

      This command will actually leave the server in a reload-required state. The shutdown, or reload, will occur before the write-attribute is executed.

            olubyans@redhat.com Alexey Loubyansky
            gonthim Joe Wertz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: