Skip to content

Commit

Permalink
Merge pull request #128 from networktocode/mzb-fix-json
Browse files Browse the repository at this point in the history
Fix NAPALM optional arguments handling
  • Loading branch information
mzbroch authored Jan 18, 2021
2 parents 0a92fdb + 6e2691b commit 35912e8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions netbox_onboarding/onboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
limitations under the License.
"""

import json

from django.conf import settings

from .netdev_keeper import NetdevKeeper
Expand All @@ -40,9 +38,7 @@ def napalm_driver(self):
def optional_args(self):
"""Return platform optional args."""
if self.ot.platform and self.ot.platform.napalm_args:
napalm_args = json.loads(self.ot.platform.napalm_args)

return napalm_args
return self.ot.platform.napalm_args

return {}

Expand Down

0 comments on commit 35912e8

Please sign in to comment.