Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
mencken-d committed Feb 7, 2025
1 parent c4c49f3 commit 42c3fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netbox_ptov/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import logging
from .jobs import ptovJob
from django.shortcuts import get_object_or_404
from netbox.dcim.models import Device


class MessagesHandler(logging.Handler):
Expand Down Expand Up @@ -54,7 +55,7 @@ def golab(request: forms.golabForm) -> django.http.HttpResponse:
try:
# Call the function that does all of the work
messages.info(request, f'Completing your request as a background job.', extra_tags='safe')
switchobject = get_object_or_404(GNS3Server, pk=form.cleaned_data['switchlist_multiplechoice_in'][0].pk)
switchobject = get_object_or_404(Device, pk=form.cleaned_data['switchlist_multiplechoice_in'][0].pk)
messages.info(request, dir(switchobject))
messages.info(request, switchobject.pk)
messages.info(request, switchobject.name)
Expand Down

0 comments on commit 42c3fa6

Please sign in to comment.