We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53fbb24 commit 5682809Copy full SHA for 5682809
src/ugrd/initramfs_dict.py
@@ -1,5 +1,5 @@
1
__author__ = "desultory"
2
-__version__ = "2.1.0"
+__version__ = "2.2.0"
3
4
from tomllib import load, TOMLDecodeError
5
from pathlib import Path
@@ -55,6 +55,8 @@ def import_args(self, args: dict) -> None:
55
self[arg] = value
56
57
def __setitem__(self, key: str, value) -> None:
58
+ if self['validated']:
59
+ return self.logger.error("[%s] Config is validatied, refusing to set value: %s" % (key, value))
60
# If the type is registered, use the appropriate update function
61
if any(key in d for d in (self.builtin_parameters, self['custom_parameters'])):
62
return self.handle_parameter(key, value)
0 commit comments