Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-03-28 16:01:55 +0200
committerAnton Hvornum <anton@hvornum.se>2022-03-28 16:01:55 +0200
commit6c71f42b4728d5e6da3b020e8454c292ed972058 (patch)
treeea489972b00992ff94801e16e94a0fb0cce94d45
parent5456920681e900df15b67644e23ea0400201d111 (diff)
Fixed an import of not yet loaded module
-rw-r--r--archinstall/lib/models/network_configuration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/models/network_configuration.py b/archinstall/lib/models/network_configuration.py
index 4b57da00..eb4c25ee 100644
--- a/archinstall/lib/models/network_configuration.py
+++ b/archinstall/lib/models/network_configuration.py
@@ -4,8 +4,6 @@ from dataclasses import dataclass
from enum import Enum
from typing import List, Optional, Dict
-from ... import log
-
class NicType(str, Enum):
ISO = "iso"
@@ -41,6 +39,8 @@ class NetworkConfiguration:
@classmethod
def parse_arguments(cls, config: Union[str,Dict[str, str]]) -> Optional["NetworkConfiguration"]:
+ from ... import log
+
nic_type = config.get('type', None)
if not nic_type: