Skip to content

Commit

Permalink
Merge pull request #8063 from rizlas/develop
Browse files Browse the repository at this point in the history
Get_Environment from napalm should not need any decoding
  • Loading branch information
jeremystretch authored Dec 21, 2021
2 parents a0db108 + 39a0b15 commit 7569544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/dcim/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def napalm(self, request, pk):
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:
Expand Down

0 comments on commit 7569544

Please sign in to comment.