Skip to content

Commit 8a5381d

Browse files
author
William Blum
committed
Fix firewall initialization in NodeInfo to use default factory
1 parent d3b750c commit 8a5381d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cyberbattle/simulation/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class NodeInfo:
326326
# Properties of the nodes, some of which can imply further vulnerabilities
327327
properties: List[PropertyName] = dataclasses.field(default_factory=list)
328328
# Fireall configuration of the node
329-
firewall: FirewallConfiguration = FirewallConfiguration()
329+
firewall: FirewallConfiguration = dataclasses.field(default_factory=FirewallConfiguration)
330330
# Attacker agent installed on the node? (aka the node is 'pwned')
331331
agent_installed: bool = False
332332
# Esclation level

0 commit comments

Comments
 (0)