Skip to content

Commit f1bb82e

Browse files
committed
Use default_factory to initialize ConnectionInfo
1 parent 8e396c5 commit f1bb82e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lisa/sut_orchestrator/baremetal/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from dataclasses import dataclass
1+
from dataclasses import dataclass, field
22

33
from lisa import schema
44
from lisa.environment import Environment
@@ -14,7 +14,7 @@ class EnvironmentContext:
1414

1515
@dataclass
1616
class NodeContext:
17-
connection: schema.ConnectionInfo = schema.ConnectionInfo(password="mock")
17+
connection: schema.ConnectionInfo = field(default_factory=schema.ConnectionInfo)
1818

1919

2020
@dataclass

0 commit comments

Comments
 (0)