diff --git a/changelog/66610.fixed.md b/changelog/66610.fixed.md new file mode 100644 index 00000000000..d04973a68a8 --- /dev/null +++ b/changelog/66610.fixed.md @@ -0,0 +1 @@ +Fixed Salt-SSH crash when key deploy is skipped manually diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py index b8cf40f0f51..a2cda6d1dc8 100644 --- a/salt/client/ssh/__init__.py +++ b/salt/client/ssh/__init__.py @@ -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) )