mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 03:46:25 -06:00
Remove extra if None not in referenced_templates
This commit is contained in:
parent
5173a490b8
commit
20c0235006
@ -29,7 +29,6 @@ class DataFileLoader(BaseLoader):
|
|||||||
|
|
||||||
# Find and pre-fetch referenced templates
|
# Find and pre-fetch referenced templates
|
||||||
if referenced_templates := tuple(find_referenced_templates(environment.parse(template_source))):
|
if referenced_templates := tuple(find_referenced_templates(environment.parse(template_source))):
|
||||||
if None in referenced_templates:
|
|
||||||
related_files = DataFile.objects.filter(source=self.data_source)
|
related_files = DataFile.objects.filter(source=self.data_source)
|
||||||
# None indicates the use of dynamic resolution. If dependent files are statically
|
# None indicates the use of dynamic resolution. If dependent files are statically
|
||||||
# defined, we can filter by path for optimization.
|
# defined, we can filter by path for optimization.
|
||||||
|
Loading…
Reference in New Issue
Block a user