-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Fix ssh_known_hosts.present excpetion when specified user not present #68537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dwoz
merged 3 commits into
saltstack:3006.x
from
sitepoint:62049-ssh_known_hosts_present_exception_fix
Dec 18, 2025
Merged
Fix ssh_known_hosts.present excpetion when specified user not present #68537
dwoz
merged 3 commits into
saltstack:3006.x
from
sitepoint:62049-ssh_known_hosts_present_exception_fix
Dec 18, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Adam Bolte <[email protected]>
Signed-off-by: Adam Bolte <[email protected]>
twangboy
previously approved these changes
Dec 16, 2025
bdrx312
reviewed
Dec 17, 2025
dwoz
approved these changes
Dec 18, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes the exception described in issue #62049, triggered when the
ssh_known_hosts.presentstate module is used with theuserargument, but the user account specified is not present.What issues does this PR fix or reference?
Fixes #62049
Previous Behavior
Here is an example state sls file:
If the user baduser does not exist, this will happen:
New Behavior
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes