← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~sergiusens/cloud-init/snappy into lp:~smoser/cloud-init/snappy

 

Sergio Schvezov has proposed merging lp:~sergiusens/cloud-init/snappy into lp:~smoser/cloud-init/snappy.

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

For more details, see:
https://code.launchpad.net/~sergiusens/cloud-init/snappy/+merge/243420


-- 
Your team cloud init development team is requested to review the proposed merge of lp:~sergiusens/cloud-init/snappy into lp:~smoser/cloud-init/snappy.
=== modified file 'cloudinit/config/cc_snappy.py'
--- cloudinit/config/cc_snappy.py	2014-12-01 20:28:37 +0000
+++ cloudinit/config/cc_snappy.py	2014-12-02 16:27:29 +0000
@@ -89,7 +89,10 @@
     not_to_be_run = "/etc/ssh/sshd_not_to_be_run"
     if enabled:
         util.write_file(not_to_be_run, "cloud-init\n")
+        util.subp(["systemctl", "start", "ssh"])
+        util.subp(["systemctl", "status", "ssh"])
     else:
+        util.subp(["systemctl", "stop", "ssh"])
         util.del_file(not_to_be_run)
 
 


Follow ups