strip read secrets
This commit is contained in:
parent
4ae3ef7ca7
commit
f14619f0df
|
@ -546,7 +546,7 @@ def read_secret_file(secret_name: str) -> str:
|
||||||
if directory is None:
|
if directory is None:
|
||||||
print("directory not set", file=sys.stderr)
|
print("directory not set", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
return Path(directory).joinpath(secret_name).read_text()
|
return Path(directory).joinpath(secret_name).read_text().strip()
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
Loading…
Reference in a new issue