Skip to content

Commit

Permalink
[pre-commit.ci] Apply automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 5, 2023
1 parent 842de7b commit e4b458c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/_nebari/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def set_config_from_environment_variables(
def dump_nested_model(model_dict: Dict[str, Union[pydantic.BaseModel, str]]):
result = {}
for key, value in model_dict.items():
result[key] = value.model_dump() if isinstance(value, pydantic.BaseModel) else value
result[key] = (
value.model_dump() if isinstance(value, pydantic.BaseModel) else value
)
return result


Expand Down
4 changes: 3 additions & 1 deletion src/_nebari/stages/infrastructure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ def tf_objects(self) -> List[Dict]:

def input_vars(self, stage_outputs: Dict[str, Dict[str, Any]]):
if self.config.provider == schema.ProviderEnum.local:
return LocalInputVars(kube_context=self.config.local.kube_context).model_dump()
return LocalInputVars(
kube_context=self.config.local.kube_context
).model_dump()
elif self.config.provider == schema.ProviderEnum.existing:
return ExistingInputVars(
kube_context=self.config.existing.kube_context
Expand Down

0 comments on commit e4b458c

Please sign in to comment.