summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig
diff options
context:
space:
mode:
authorMike Milner <mike.milner@canonical.com>2012-01-17 11:49:32 -0400
committerMike Milner <mike.milner@canonical.com>2012-01-17 11:49:32 -0400
commit19da04df35c1e6b22379c7b8e0457b16af299593 (patch)
tree32ace37773c207323c4dc05aa838b0e00fd76591 /cloudinit/CloudConfig
parent44ea733b7a462442fe2cc3c858001c0cd909dd1b (diff)
downloadvyos-cloud-init-19da04df35c1e6b22379c7b8e0457b16af299593.tar.gz
vyos-cloud-init-19da04df35c1e6b22379c7b8e0457b16af299593.zip
Use delete_dir_contents from cloudinit.util.
Diffstat (limited to 'cloudinit/CloudConfig')
-rw-r--r--cloudinit/CloudConfig/cc_ca_certs.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/cloudinit/CloudConfig/cc_ca_certs.py b/cloudinit/CloudConfig/cc_ca_certs.py
index 9d7dcf7f..ef651f8b 100644
--- a/cloudinit/CloudConfig/cc_ca_certs.py
+++ b/cloudinit/CloudConfig/cc_ca_certs.py
@@ -21,22 +21,13 @@ import json
import StringIO
import ConfigParser
import cloudinit.CloudConfig as cc
-from cloudinit.util import write_file, get_cfg_option_list_or_str
+from cloudinit.util import write_file, get_cfg_option_list_or_str, delete_dir_contents
CA_CERT_PATH = "/usr/share/ca-certificates/"
CA_CERT_FILENAME = "cloud-init-ca-certs.crt"
CA_CERT_CONFIG = "/etc/ca-certificates.conf"
CA_CERT_SYSTEM_PATH = "/etc/ssl/certs/"
-def delete_dir_contents(dirname):
- """
- Delete all the contents of the directory specified by C{dirname} without
- deleting the directory itself.
-
- @param dirname: The directory whose contents should be deleted.
- """
- raise NotImplementedError()
-
def update_ca_certs():
"""
Updates the CA certificate cache on the current machine.