← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~nrezinorn/cloud-init:fix_rhel_ssh_service into cloud-init:master

 

Jim Gorz has proposed merging ~nrezinorn/cloud-init:fix_rhel_ssh_service into cloud-init:master.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~nrezinorn/cloud-init/+git/cloud-init/+merge/306653

Bugfix for https://bugs.launchpad.net/cloud-init/+bug/1470433
-- 
Your team cloud init development team is requested to review the proposed merge of ~nrezinorn/cloud-init:fix_rhel_ssh_service into cloud-init:master.
diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py
index 1aa42d7..e70445d 100644
--- a/cloudinit/distros/rhel.py
+++ b/cloudinit/distros/rhel.py
@@ -62,6 +62,8 @@ class Distro(distros.Distro):
         self._runner = helpers.Runners(paths)
         self.osfamily = 'redhat'
         self._net_renderer = sysconfig.Renderer()
+        # Fix sshd restarts
+        cfg['ssh_svcname'] = 'sshd'
 
     def install_packages(self, pkglist):
         self.package_command('install', pkgs=pkglist)

Follow ups