Details
-
Feature Request
-
Resolution: Done
-
Major
-
7.1.0.CR1b
-
None
Description
To allow for repeatable CLI script executions (e.g. in case of a missconfiguration like wrong IP or DB-Password provided) conditional logic is required to prevent "Duplicate resource" failures. These logic is typically contained in a wrapper script (shell script or another scripting language).
Pseudocode:
exists = test if the resource to be (re-)added already exists if (exists) remove resource add resource
Adding a "force" or "override" attribute to the add operation (which recreates the resources transparently if necessary) would remove the need for conditional logic and additional wrapper scripts.
A simple example, assuming that the logger to be added already exists:
/subsystem=logging/logger=com.arjuna:add(level=TRACE, force=true)
In such a case the existing logger should be removed and recreated with the new properties provided.