diff options
Diffstat (limited to 'lib/ssh')
-rw-r--r-- | lib/ssh/src/ssh_io.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_io.erl b/lib/ssh/src/ssh_io.erl index fc7a572f7c..17a7cebb4a 100644 --- a/lib/ssh/src/ssh_io.erl +++ b/lib/ssh/src/ssh_io.erl @@ -56,7 +56,12 @@ yes_no(Prompt, Ssh) -> read_password(Prompt, Ssh) -> format("~s", [listify(Prompt)]), - proplists:get_value(user_pid, Ssh#ssh.opts) ! {self(), user_password}, + case is_list(Ssh) of + false -> + proplists:get_value(user_pid, Ssh#ssh.opts) ! {self(), user_password}; + _ -> + proplists:get_value(user_pid, Ssh) ! {self(), user_password} + end, receive Answer -> case Answer of |