Преглед на файлове

Merge pull request #8063 from rizlas/develop

Get_Environment from napalm should not need any decoding
Jeremy Stretch преди 4 години
родител
ревизия
7569544b7b
променени са 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)())
+                response[method] = getattr(d, method)()
             except NotImplementedError:
                 response[method] = {'error': 'Method {} not implemented for NAPALM driver {}'.format(method, driver)}
             except Exception as e: