diff options
| author | Nate House nathan.house@rackspace.com <> | 2014-01-28 08:48:47 -0600 |
|---|---|---|
| committer | Nate House nathan.house@rackspace.com <> | 2014-01-28 08:48:47 -0600 |
| commit | dd95d5e0a90031f19a68b255510476fb176126a6 (patch) | |
| tree | 1c6fa51fe6beba7299e34deafa187a3945335614 /cloudinit/config/cc_ssh.py | |
| parent | 79d1eccc9fa751325fcb574fd9385a14bf2bbba6 (diff) | |
| download | vyos-cloud-init-dd95d5e0a90031f19a68b255510476fb176126a6.tar.gz vyos-cloud-init-dd95d5e0a90031f19a68b255510476fb176126a6.zip | |
exclude modules fix 1
Diffstat (limited to 'cloudinit/config/cc_ssh.py')
| -rw-r--r-- | cloudinit/config/cc_ssh.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/config/cc_ssh.py b/cloudinit/config/cc_ssh.py index 0dc1d15d..64a5e3cb 100644 --- a/cloudinit/config/cc_ssh.py +++ b/cloudinit/config/cc_ssh.py @@ -56,8 +56,7 @@ KEY_FILE_TPL = '/etc/ssh/ssh_host_%s_key' def handle(_name, cfg, cloud, log, _args): - if cloud.is_excluded(_name): - return + # remove the static keys from the pristine image if cfg.get("ssh_deletekeys", True): key_pth = os.path.join("/etc/ssh/", "ssh_host_*key*") |
