From 5b60ef1ee8125546fe3bf261dea456b1ce94fe03 Mon Sep 17 00:00:00 2001 From: James Slagle Date: Tue, 8 Dec 2020 09:44:53 -0500 Subject: [PATCH] Don't try and clean non-existing nic config dir tools/process-templates.py -c was failing with a traceback: FileNotFoundError: [Errno 2] No such file or directory: './network/config' That directory was removed in commit 3c246d15d87921ae423f3f012304368b127ecfbe, so we can remove trying to clean it from process-templates.py Closes-Bug: #1907268 Change-Id: I9e07d82240dee7d066634b1cade1390fe62e8341 Signed-off-by: James Slagle --- tools/process-templates.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/process-templates.py b/tools/process-templates.py index 7eafcc4774..fcbcf69dce 100755 --- a/tools/process-templates.py +++ b/tools/process-templates.py @@ -389,16 +389,6 @@ def clean_templates(base_path, role_data_path, network_data_path): delete(krb_service_principals_path) delete(common_services_path) - nic_config_dir = os.path.join(base_path, 'network', 'config') - for sample_nic_config_dir in os.listdir(nic_config_dir): - delete(os.path.join( - nic_config_dir, sample_nic_config_dir, - '%s.yaml' % role['name'].lower())) - if 'deprecated_nic_config_name' in role: - delete(os.path.join( - nic_config_dir, sample_nic_config_dir, - role['deprecated_nic_config_name'])) - opts = parse_opts(sys.argv)