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
3c246d15d8
, so we can remove trying to
clean it from process-templates.py
Closes-Bug: #1907268
Change-Id: I9e07d82240dee7d066634b1cade1390fe62e8341
Signed-off-by: James Slagle <jslagle@redhat.com>
This commit is contained in:
parent
91de0b33b9
commit
5b60ef1ee8
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user