Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/models/network_configuration.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/models/network_configuration.py')
-rw-r--r--archinstall/lib/models/network_configuration.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/models/network_configuration.py b/archinstall/lib/models/network_configuration.py
index fac7bbef..1777df62 100644
--- a/archinstall/lib/models/network_configuration.py
+++ b/archinstall/lib/models/network_configuration.py
@@ -42,7 +42,7 @@ class Nic:
'dns': self.dns
}
- def __dump__(self) -> Dict[str, Any]:
+ def json(self) -> Dict[str, Any]:
return {
'iface': self.iface,
'ip': self.ip,
@@ -94,10 +94,10 @@ class NetworkConfiguration:
type: NicType
nics: List[Nic] = field(default_factory=list)
- def __dump__(self) -> Dict[str, Any]:
+ def json(self) -> Dict[str, Any]:
config: Dict[str, Any] = {'type': self.type.value}
if self.nics:
- config['nics'] = [n.__dump__() for n in self.nics]
+ config['nics'] = [n.json() for n in self.nics]
return config