summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_set_passwords.py
diff options
context:
space:
mode:
authorNate House nathan.house@rackspace.com <>2014-01-24 13:14:12 -0600
committerNate House nathan.house@rackspace.com <>2014-01-24 13:14:12 -0600
commit29780092f57931d7c22bfbf3af37dea00edc76c9 (patch)
tree00dbc3a652a126f11bbd05d10fdb434ff956f056 /cloudinit/config/cc_set_passwords.py
parentf64cd3d53fb09fb41104f600ead60eefe9dbd4ab (diff)
downloadvyos-cloud-init-29780092f57931d7c22bfbf3af37dea00edc76c9.tar.gz
vyos-cloud-init-29780092f57931d7c22bfbf3af37dea00edc76c9.zip
init_cmd distro unique supports gentoo init scripts
Diffstat (limited to 'cloudinit/config/cc_set_passwords.py')
-rw-r--r--cloudinit/config/cc_set_passwords.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_set_passwords.py b/cloudinit/config/cc_set_passwords.py
index 06974248..579735ed 100644
--- a/cloudinit/config/cc_set_passwords.py
+++ b/cloudinit/config/cc_set_passwords.py
@@ -136,7 +136,7 @@ def handle(_name, cfg, cloud, log, args):
util.write_file(ssh_util.DEF_SSHD_CFG, "\n".join(lines))
try:
- cmd = cloud.distro.init_cmd or ['service']
+ cmd = cloud.distro.init_cmd
cmd.append(cloud.distro.get_option('ssh_svcname', 'ssh'))
cmd.append('restart')
util.subp(cmd)