1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #941: Corrected old references to rack.site on Device

This commit is contained in:
Jeremy Stretch
2017-03-06 10:23:24 -05:00
parent d8f41f67c9
commit f8381628d4
5 changed files with 17 additions and 13 deletions

View File

@@ -49,7 +49,7 @@ class Command(BaseCommand):
self.stdout.write("Running inventory for these sites: {}".format(', '.join(site_names)))
else:
raise CommandError("One or more sites specified but none found.")
device_list = device_list.filter(rack__site__in=sites)
device_list = device_list.filter(site__in=sites)
# --name: Filter devices by name matching a regex
if options['name']: