Open saparikh opened 4 years ago
This fixed the issue:
diff --git a/netcfgbu/config_model.py b/netcfgbu/config_model.py
index 1b387e0..f6716b1 100644
--- a/netcfgbu/config_model.py
+++ b/netcfgbu/config_model.py
@@ -115,7 +115,7 @@ class FilePathEnvExpand(FilePath):
class GitSpec(NoExtraBaseModel):
name: Optional[str]
- repo: str
+ repo: EnvExpand
email: Optional[str]
username: Optional[EnvExpand]
password: Optional[EnvExpand]
It was assuming that the repo value was a string
@saparikh - if you'd like to make a PR I'll bring it into the next build. Thank you!
I can give that a go. I did a quick hack to make it work locally, but wasn't sure if that was the correct fix given the overall code structure or not.
When I use an environment variable for the Git repo URL, I get the following error:
This is the TOML file section:
If I replace the env var with the URL, everything works:
Running version 0.60