소스 검색

Update netbox/dcim/api/views.py

Test without decode_dict function

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>

rizlas 4 년 전
부모
커밋
39a0b15df4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netbox/dcim/api/views.py

+ 1 - 1
netbox/dcim/api/views.py

@@ -501,7 +501,7 @@ class DeviceViewSet(ConfigContextQuerySetMixin, CustomFieldModelViewSet):
                 response[method] = {'error': 'Only get_* NAPALM methods are supported'}
                 continue
             try:
-                response[method] = decode_dict(getattr(d, method)(), decode_keys=False)
+                response[method] = getattr(d, method)()
             except NotImplementedError:
                 response[method] = {'error': 'Method {} not implemented for NAPALM driver {}'.format(method, driver)}
             except Exception as e: