← Back to team overview

cloud-init-dev team mailing list archive

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

 

Sergio Schvezov has proposed merging lp:~sergiusens/cloud-init/snappy_ssh 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_ssh/+merge/243439


-- 
Your team cloud init development team is requested to review the proposed merge of lp:~sergiusens/cloud-init/snappy_ssh into lp:~smoser/cloud-init/snappy.
=== modified file 'cloudinit/config/cc_snappy.py'
--- cloudinit/config/cc_snappy.py	2014-12-02 16:40:17 +0000
+++ cloudinit/config/cc_snappy.py	2014-12-02 18:17:27 +0000
@@ -88,13 +88,13 @@
     # do something here that would enable or disable
     not_to_be_run = "/etc/ssh/sshd_not_to_be_run"
     if enabled:
-        util.write_file(not_to_be_run, "cloud-init\n")
+        util.del_file(not_to_be_run)
         # this is an indempotent operation
         util.subp(["systemctl", "start", "ssh"])
     else:
         # this is an indempotent operation
         util.subp(["systemctl", "stop", "ssh"])
-        util.del_file(not_to_be_run)
+        util.write_file(not_to_be_run, "cloud-init\n")
 
 
 def handle(name, cfg, cloud, log, args):


Follow ups