diff options
author | Nate House nathan.house@rackspace.com <> | 2014-01-27 12:22:21 -0600 |
---|---|---|
committer | Nate House nathan.house@rackspace.com <> | 2014-01-27 12:22:21 -0600 |
commit | 309457a96a84132d2e570bf902c464b2a1aa9d0b (patch) | |
tree | a6962fcd17eccaae448b1bccb06cea3f7d6a7800 /cloudinit/config/cc_ssh_import_id.py | |
parent | 8f6c9ff5ed7e301db2efa9ffa9a4bf454eb819e9 (diff) | |
download | vyos-cloud-init-309457a96a84132d2e570bf902c464b2a1aa9d0b.tar.gz vyos-cloud-init-309457a96a84132d2e570bf902c464b2a1aa9d0b.zip |
Adds distro module exclude support
Diffstat (limited to 'cloudinit/config/cc_ssh_import_id.py')
-rw-r--r-- | cloudinit/config/cc_ssh_import_id.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/config/cc_ssh_import_id.py b/cloudinit/config/cc_ssh_import_id.py index 50d96e15..51e0bc0b 100644 --- a/cloudinit/config/cc_ssh_import_id.py +++ b/cloudinit/config/cc_ssh_import_id.py @@ -32,7 +32,8 @@ distros = ['ubuntu'] def handle(_name, cfg, cloud, log, args): - + if cloud.is_excluded(_name): + return # import for "user: XXXXX" if len(args) != 0: user = args[0] |