From 19da04df35c1e6b22379c7b8e0457b16af299593 Mon Sep 17 00:00:00 2001 From: Mike Milner Date: Tue, 17 Jan 2012 11:49:32 -0400 Subject: Use delete_dir_contents from cloudinit.util. --- cloudinit/CloudConfig/cc_ca_certs.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'cloudinit/CloudConfig') 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. -- cgit v1.2.3