Skip to content
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

[202012] Check config file not empty after modify it in hostcfgd. #14385

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Mar 22, 2023

What I did
Check /etc/pam.d/sshd integrity after modify it in hostcfgd.

Why I did it
Found some incident that /etc/pam.d/sshd become empty file during OR upgrade.

How I verified it
Pass all UT.
Add new UT to cover new code.

Details if related
This is a manually cherry-pick PR for sonic-net/sonic-host-services#36

liuh-80 and others added 2 commits March 22, 2023 08:08
…nic-net#14115)

What I did
Check /etc/pam.d/sshd integrity after modify it in hostcfgd.

Why I did it
Found some incident that /etc/pam.d/sshd become empty file during OR upgrade.

How I verified it
Pass all UT.
Add new UT to cover new code.
@liuh-80
Copy link
Contributor Author

liuh-80 commented Mar 27, 2023

Because we can only cherry pick from master branch to older branch, so will create manuallt chertry-pick PR for 201811 and 201911

PR for 201811:
#14423

PR for 201911:
#14422

@qiluo-msft qiluo-msft merged commit a20b43e into sonic-net:202012 Mar 27, 2023
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.

2 participants