use rstrip to remove trailing newlines
This commit is contained in:
parent
9ad17c646b
commit
9f2ec133e1
|
@ -548,7 +548,7 @@ def read_secret_file(secret_name: str) -> str:
|
|||
if directory is None:
|
||||
print("directory not set", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
return Path(directory).joinpath(secret_name).read_text().strip()
|
||||
return Path(directory).joinpath(secret_name).read_text().rstrip()
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
Loading…
Reference in a new issue