Skip to content

Commit

Permalink
markdownifying p_to_v messages
Browse files Browse the repository at this point in the history
  • Loading branch information
menckend committed Oct 20, 2024
1 parent 4c918b2 commit b78dcea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox_ptov/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def golab(request):
for swname in swl_in:
print (swname, type(swname))
swl.append(str(swname))
messages.add_message(request, messages.INFO, '### Switch-list:\n ' + str(swl), extra_tags='safe')
messages.add_message(request, messages.INFO, '###### Switch-list:\n ' + str(swl), extra_tags='safe')
srv = form.cleaned_data['serverselect_in'].name
prn = form.cleaned_data['prjname_in']
# Do something with the text (e.g., save to database)

messages.add_message(request, messages.INFO, '### GNS3 server\n' + str(srv), extra_tags='safe')
messages.add_message(request, messages.INFO, '###### GNS3 server\n' + str(srv), extra_tags='safe')
result_out = str(dcnodatg.p_to_v(username=unm, passwd=pwd , servername=srv, switchlist=swl, prjname=prn))
messages.add_message(request, messages.SUCCESS, '### Project URL: \n' + result_out, extra_tags='safe')
return render(request, 'golab.html', {'form': form})
Expand Down

0 comments on commit b78dcea

Please sign in to comment.