We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d38343d + d053df4 commit 94988c8Copy full SHA for 94988c8
netbox_onboarding/worker.py
@@ -29,6 +29,7 @@ def onboard_device(task_id, credentials):
29
"""Process a single OnboardingTask instance."""
30
username = credentials.username
31
password = credentials.password
32
+ secret = credentials.secret
33
34
try:
35
ot = OnboardingTask.objects.get(id=task_id)
@@ -43,7 +44,7 @@ def onboard_device(task_id, credentials):
43
44
ot.status = OnboardingStatusChoices.STATUS_RUNNING
45
ot.save()
46
- netdev = NetdevKeeper(ot, username, password)
47
+ netdev = NetdevKeeper(ot, username, password, secret)
48
nbk = NetboxKeeper(netdev=netdev)
49
50
netdev.get_required_info()
0 commit comments