Fixed an import of not yet loaded module
This commit is contained in:
parent
5456920681
commit
6c71f42b47
|
|
@ -4,8 +4,6 @@ from dataclasses import dataclass
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import List, Optional, Dict
|
from typing import List, Optional, Dict
|
||||||
|
|
||||||
from ... import log
|
|
||||||
|
|
||||||
|
|
||||||
class NicType(str, Enum):
|
class NicType(str, Enum):
|
||||||
ISO = "iso"
|
ISO = "iso"
|
||||||
|
|
@ -41,6 +39,8 @@ class NetworkConfiguration:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def parse_arguments(cls, config: Union[str,Dict[str, str]]) -> Optional["NetworkConfiguration"]:
|
def parse_arguments(cls, config: Union[str,Dict[str, str]]) -> Optional["NetworkConfiguration"]:
|
||||||
|
from ... import log
|
||||||
|
|
||||||
nic_type = config.get('type', None)
|
nic_type = config.get('type', None)
|
||||||
|
|
||||||
if not nic_type:
|
if not nic_type:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue