Skip to content

Allow alternate enc names to be used for ssh_auth states - #6134

Merged
techhat merged 1 commit into
saltstack:developfrom
terminalmage:issue5374
Jul 13, 2013
Merged

techhat merged 1 commit into
saltstack:developfrom
terminalmage:issue5374

Conversation

@terminalmage

Copy link
Copy Markdown
Contributor

If 'rsa' or 'dss', etc. are used as the 'enc' value in ssh_auth.present
states (rather than 'ssh-rsa' or 'ssh-dss'), the call to
salt.modules.ssh.check_key() will fail, which causes ssh_auth.present
states to mistakenly report the key as needing to be changed. This
commit adds a call to salt.modules.ssh._refine_enc(), which normalizes
the 'enc' param so that the call to ssh.check_key() does not fail.

Fixes #5374.

If 'rsa' or 'dss', etc. are used as the 'enc' value in ssh_auth.present
states (rather than 'ssh-rsa' or 'ssh-dss'), the call to
salt.modules.ssh.check_key() will fail, which causes ssh_auth.present
states to mistakenly report the key as needing to be changed. This
commit adds a call to salt.modules.ssh._refine_enc(), which normalizes
the 'enc' param so that the call to ssh.check_key() does not fail.

Fixes saltstack#5374.
techhat added a commit that referenced this pull request Jul 13, 2013
Allow alternate enc names to be used for ssh_auth states
@techhat
techhat merged commit 5a1a283 into saltstack:develop Jul 13, 2013
@techhat

techhat commented Jul 13, 2013

Copy link
Copy Markdown
Contributor

Much better.

@terminalmage

Copy link
Copy Markdown
Contributor Author

Github had a brain fart, it seems

@terminalmage

Copy link
Copy Markdown
Contributor Author

@basepi this should be cherry-picked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ssh-auth becomes a chatty Cathy during test runs

2 participants