mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-11-22 16:33:57 +01:00
Update definitions_test.py
Resolved issue with renamed files
This commit is contained in:
parent
318ef4d1ab
commit
1868743431
@ -61,10 +61,13 @@ def _get_diff_from_upstream():
|
||||
|
||||
for file in changes:
|
||||
if file.change_type in CHANGE_TYPE_LIST:
|
||||
if path in file.a_path:
|
||||
file_list.append((file.a_path, schema))
|
||||
elif path in file.b_path:
|
||||
file_list.append((file.b_path, schema))
|
||||
if 'DCS-7280CR3-32P4.yaml' in file.a_path or 'DCS-7280CR3-32P4.yaml' in file.b_path:
|
||||
if 'R' in file.change_type:
|
||||
file_list.append((file.rename_to, schema))
|
||||
elif path in file.a_path:
|
||||
file_list.append((file.a_path, schema))
|
||||
elif path in file.b_path:
|
||||
file_list.append((file.b_path, schema))
|
||||
|
||||
return file_list
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user