Browse Source

Get_Environment from napalm should not need any decoding

rizlas 4 years ago
parent
commit
2ec64a2ea2
1 changed files with 1 additions and 1 deletions
  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)())
+                response[method] = decode_dict(getattr(d, method)(), decode_keys=False)
             except NotImplementedError:
                 response[method] = {'error': 'Method {} not implemented for NAPALM driver {}'.format(method, driver)}
             except Exception as e: