diff options
Diffstat (limited to 'cloudinit/CloudConfig/cc_ca_certs.py')
| -rw-r--r-- | cloudinit/CloudConfig/cc_ca_certs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_ca_certs.py b/cloudinit/CloudConfig/cc_ca_certs.py index e6cdc3f5..c18821f9 100644 --- a/cloudinit/CloudConfig/cc_ca_certs.py +++ b/cloudinit/CloudConfig/cc_ca_certs.py @@ -56,7 +56,7 @@ def remove_default_ca_certs(): write_file(CA_CERT_CONFIG, "", mode=0644) -def handle(name, cfg, cloud, log, args): +def handle(_name, cfg, _cloud, log, _args): """ Call to handle ca-cert sections in cloud-config file. @@ -74,12 +74,14 @@ def handle(name, cfg, cloud, log, args): # If there is a remove-defaults option set to true, remove the system # default trusted CA certs first. if ca_cert_cfg.get("remove-defaults", False): + log.debug("removing default certificates") remove_default_ca_certs() # If we are given any new trusted CA certs to add, add them. if "trusted" in ca_cert_cfg: trusted_certs = get_cfg_option_list_or_str(ca_cert_cfg, "trusted") if trusted_certs: + log.debug("adding %d certificates" % len(trusted_certs)) add_ca_certs(trusted_certs) # Update the system with the new cert configuration. |
