Fix Salt-SSH crash when key deploy is skipped manually

This commit is contained in:
jeanluc 2024-06-03 14:12:47 +02:00 committed by Daniel Wozniak
parent df835c1982
commit af3818ba24
2 changed files with 2 additions and 1 deletions

1
changelog/66610.fixed.md Normal file
View file

@ -0,0 +1 @@
Fixed Salt-SSH crash when key deploy is skipped manually

View file

@ -480,7 +480,7 @@ class SSH(MultiprocessingStateMixin):
)
deploy = input("[Y/n] ")
if deploy.startswith(("n", "N")):
return ret
return ret, None
target["passwd"] = getpass.getpass(
"Password for {}@{}: ".format(target["user"], host)
)