mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Removed exception for empty methods
I'll create a seperate ticket for that
This commit is contained in:
parent
46c712e735
commit
ad565e55f1
@ -374,9 +374,6 @@ class DeviceViewSet(CustomFieldModelViewSet):
|
||||
"""
|
||||
Execute a NAPALM method on a Device
|
||||
"""
|
||||
if not request.GET.get('method'):
|
||||
raise ServiceUnavailable('No NAPALM methods were specified.')
|
||||
|
||||
device = get_object_or_404(Device, pk=pk)
|
||||
if not device.primary_ip:
|
||||
raise ServiceUnavailable("This device does not have a primary IP address configured.")
|
||||
|
Loading…
Reference in New Issue
Block a user