Skip to content

Commit 6b32630

Browse files
committed
fix tests
1 parent 54d691f commit 6b32630

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/_nebari/stages/infrastructure/__init__.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import tempfile
99
from typing import Annotated, Any, Dict, List, Literal, Optional, Tuple, Type, Union
1010

11-
from pydantic import Field, field_validator, model_validator
11+
from pydantic import Field, PrivateAttr, field_validator, model_validator
1212

1313
from _nebari import constants
1414
from _nebari.provider import terraform
@@ -135,11 +135,8 @@ class AWSAmiTypes(str, enum.Enum):
135135

136136

137137
class AWSNodeLaunchTemplate(schema.Base):
138-
class Config:
139-
underscore_attrs_are_private = True
140-
141138
pre_bootstrap_command: Optional[str] = None
142-
_ami_id: Optional[str] = None
139+
_ami_id: Optional[str] = PrivateAttr(default=None)
143140

144141

145142
class AWSNodeGroupInputVars(schema.Base):

0 commit comments

Comments
 (0)