nicc777 / py-animus

A python based plugable and extensible manifest processing system
GNU General Public License v3.0
0 stars 0 forks source link

Add a command line parameter `--on-error` #23

Open nicc777 opened 1 year ago

nicc777 commented 1 year ago

Brief Description of the Enhancement

This parameter can have values of either rollback (default) or halt to determine what the processing should do when an ActionFailException is raised

Describe the benefit of this proposed enhancement

Give users more control over how errors are handled

Code examples, pseudo code or any other technical description of the proposal

If the value is rollback, and any manifest apply/delete command fails, the application will run through the previously applied manifests in reverse order and call the rollback method of each. If the value is halt, the application will simply stop at the point where a apply/delete action of a manifest fails.