Skip to content

Commit 6e2691b

Browse files
committed
Fixes JSON in napalm optional arguments
1 parent 0a92fdb commit 6e2691b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

netbox_onboarding/onboard.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
limitations under the License.
1313
"""
1414

15-
import json
16-
1715
from django.conf import settings
1816

1917
from .netdev_keeper import NetdevKeeper
@@ -40,9 +38,7 @@ def napalm_driver(self):
4038
def optional_args(self):
4139
"""Return platform optional args."""
4240
if self.ot.platform and self.ot.platform.napalm_args:
43-
napalm_args = json.loads(self.ot.platform.napalm_args)
44-
45-
return napalm_args
41+
return self.ot.platform.napalm_args
4642

4743
return {}
4844

0 commit comments

Comments
 (0)