forked from se-sic/coronet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update default behavior of 'Conf' objects
In recent scenarios and in perspective of up-coming changes, the default behavior of 'Conf' objects upon initialization and update: 1) The default values are *not* automatically checked against the allowed values anymore. This is mainly disabled to avoid confusion of users. The constructor of the class 'Conf' is adapted accordingly. 2) When updating a configuration value, the program execution is now stopped (using 'stop') on failure. Previously, the respective update has been ignored while issuing a warning. This change helps preventing confusion and analysis errors early in an analysis script. Accordingly, the parameter 'stop.on.error' to all update methods is removed. Furthermore, the code is streamlined, such that the super-constructor is called from both subclasses 'NetworkConf' and 'ProjectConf'. Some log statements are added/adjusted, too. Signed-off-by: Claus Hunsen <[email protected]>
- Loading branch information
Showing
1 changed file
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters