cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #04632
[Merge] ~smoser/cloud-init:fix/1677205-eol-on-sshd_config into cloud-init:master
The proposal to merge ~smoser/cloud-init:fix/1677205-eol-on-sshd_config into cloud-init:master has been updated.
Commit message changed to:
set_passwords: Add newline to end of sshd config, only restart if updated.
This admittedly does a fairly extensive re-factor to simply add a newline
to the end of sshd_config.
It makes the ssh_config updating portion of set_passwords more testable
and adds tests for that.
The new function is in 'update_ssh_config_lines' which allows you
to update a config with multiple changes even though only a single one
is currently used.
We also only restart the ssh daemon now if a change was made to the
config file. Before it was always restarted if the user specified
a value for ssh_pwauth other than 'unchanged'.
Thanks to Lorens Kockum for initial diagnosis and patch.
LP: #1677205
For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/343246
--
Your team cloud-init commiters is requested to review the proposed merge of ~smoser/cloud-init:fix/1677205-eol-on-sshd_config into cloud-init:master.