Explorar o código

Removed exception for empty methods
I'll create a seperate ticket for that

Saria Hajjar %!s(int64=6) %!d(string=hai) anos
pai
achega
ad565e55f1
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      netbox/dcim/api/views.py

+ 0 - 3
netbox/dcim/api/views.py

@@ -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.")