forked from RedHatProductSecurity/rapidast
-
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.
[configModel] Create path when it is partial (RedHatProductSecurity#150)
This kind of YAML was causing trouble: ```yaml a: ``` When reading this, it is converted to `{"a": None}`, but configModel would refuse to go down that path to set a value (unless we overwrite). This change fixes that: in this condition, config.set() no longer consider setting `a.b` as overwriting `None` to a dictionary This fixes the ZAP template configuration, where the following happened: ```yaml general: container: ``` the code would refuse to set `container.parameters.executable` because container existed but points to `None` This resulted in `zap.sh` not being set
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
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
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