Skip to content

setting host_keys with env doesn't work as expected #1488

Answered by drakkan
ziporah asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

host keys is a list of string not a struct and don't contain a struct inside. In the docs there is also an example to set env vars for string lists (SFTPGO_COMMON__ACTIONS__EXECUTE_ON=upload,download).

Setting env vars for lists as comma separated values is the standard viper behaviour and so it was is expected. Feel free to send a PR to clarify things but make sure to not confuse lists and structs. Thank you

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ziporah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants