Skip to content

Commit

Permalink
Merge pull request #288 from valory-xyz/fix/nested-overrides
Browse files Browse the repository at this point in the history
Add nested params variable on base config class
  • Loading branch information
DavidMinarsch authored Sep 2, 2022
2 parents ce531d6 + 54a522f commit 6eeb8d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aea/configurations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ class PackageConfiguration(Configuration, ABC):

default_configuration_filename: str
package_type: PackageType

FIELDS_ALLOWED_TO_UPDATE: FrozenSet[str] = frozenset(["build_directory"])
FIELDS_WITH_NESTED_FIELDS: FrozenSet[str] = frozenset()
NESTED_FIELDS_ALLOWED_TO_UPDATE: FrozenSet[str] = frozenset()

schema: str
CHECK_EXCLUDES: List[Tuple[str]] = []

Expand Down Expand Up @@ -573,6 +577,7 @@ class ConnectionConfig(ComponentConfiguration):
FIELDS_ALLOWED_TO_UPDATE: FrozenSet[str] = frozenset(
["config", "cert_requests", "is_abstract", "build_directory"]
)
FIELDS_WITH_NESTED_FIELDS: FrozenSet[str] = frozenset(["config"])

__slots__ = (
"class_name",
Expand Down Expand Up @@ -1185,6 +1190,7 @@ class AgentConfig(PackageConfiguration):
"storage_uri",
]
)
FIELDS_WITH_NESTED_FIELDS: FrozenSet[str] = frozenset(["logging_config"])
CHECK_EXCLUDES = [
("private_key_paths",),
("connection_private_key_paths",),
Expand Down

0 comments on commit 6eeb8d4

Please sign in to comment.