Fixed an import of not yet loaded module

This commit is contained in:
Anton Hvornum 2022-03-28 16:01:55 +02:00
parent 5456920681
commit 6c71f42b47
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 2 deletions

View File

@ -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: