@@ -151,7 +151,7 @@ coroutines to it from any synchronous thread:
151151 )
152152 try :
153153 ticket_id = glpi.create_ticket(
154- " Printer issue" , " <p> The printer is offline.</p> "
154+ " Printer issue" , " The printer is offline."
155155 )
156156 print (" created ticket" , ticket_id)
157157 finally :
@@ -270,7 +270,7 @@ ambient extras when both are present.
270270
271271 ticket = PostTicket(
272272 name = " Printer offline" ,
273- content = " <p> The third-floor printer cannot be reached.</p> " ,
273+ content = " The third-floor printer cannot be reached." ,
274274 extra_payload = {" _room_code" : " PAR-3F-12" },
275275 )
276276 ticket_id = await client.create_ticket(ticket)
@@ -290,12 +290,12 @@ helpers under ``/Assistance/Ticket``.
290290 from glpi_python_client import PatchTicket, PostTicket
291291
292292 ticket_id = await client.create_ticket(
293- PostTicket(name = " Wi-Fi unreachable" , content = " <p> 802.1X failure</p> " )
293+ PostTicket(name = " Wi-Fi unreachable" , content = " 802.1X failure" )
294294 )
295295 try :
296296 await client.update_ticket(
297297 ticket_id,
298- PatchTicket(content = " <p> Updated diagnosis</p> " ),
298+ PatchTicket(content = " Updated diagnosis" ),
299299 )
300300 ticket = await client.get_ticket(ticket_id)
301301 results = await client.search_tickets(" status==1" , limit = 20 )
@@ -326,15 +326,15 @@ delete_`` shape (``link_`` / ``unlink_`` for documents).
326326
327327 followup_id = await client.create_ticket_followup(
328328 ticket_id,
329- PostFollowup(content = " <p> Triaged: ongoing</p> " ),
329+ PostFollowup(content = " Triaged: ongoing" ),
330330 )
331331 task_id = await client.create_ticket_task(
332332 ticket_id,
333- PostTicketTask(content = " <p> On-site visit</p> " , duration = 900 ),
333+ PostTicketTask(content = " On-site visit" , duration = 900 ),
334334 )
335335 solution_id = await client.create_ticket_solution(
336336 ticket_id,
337- PostSolution(content = " <p> Replaced the access point</p> " ),
337+ PostSolution(content = " Replaced the access point" ),
338338 )
339339
340340 followups = await client.list_ticket_followups(ticket_id)
@@ -507,24 +507,24 @@ The following example mirrors the integration test suite:
507507 )
508508 )
509509 ticket_id = await client.create_ticket(
510- PostTicket(name = " VPN drops" , content = " <p> Daily VPN drops at 11:00</p> " )
510+ PostTicket(name = " VPN drops" , content = " Daily VPN drops at 11:00" )
511511 )
512512 try :
513513 await client.create_ticket_followup(
514514 ticket_id,
515- PostFollowup(content = " <p> Reproduced on lab laptop</p> " ),
515+ PostFollowup(content = " Reproduced on lab laptop" ),
516516 )
517517 await client.create_ticket_task(
518518 ticket_id,
519- PostTicketTask(content = " <p> Capture VPN logs</p> " , duration = 1800 ),
519+ PostTicketTask(content = " Capture VPN logs" , duration = 1800 ),
520520 )
521521 await client.add_ticket_team_member(
522522 ticket_id,
523523 PostTeamMember(type = " User" , id = user_id, role = " assigned" ),
524524 )
525525 await client.create_ticket_solution(
526526 ticket_id,
527- PostSolution(content = " <p> Upgraded VPN client</p> " ),
527+ PostSolution(content = " Upgraded VPN client" ),
528528 )
529529 context = await client.get_ticket_context(ticket_id)
530530 print (context.ticket.name, len (context.followups))
0 commit comments