Only post results for devices with TestObj(s)
This commit is contained in:
parent
d9ab1730b4
commit
495e265de0
1 changed files with 3 additions and 0 deletions
|
|
@ -390,6 +390,9 @@ class osTicket():
|
|||
|
||||
def post_device_results(self, dev, ticket_id):
|
||||
"""Generate osTicket friendly report and post as response to ticket."""
|
||||
if not dev.tests:
|
||||
# No test results available, aborting post
|
||||
return
|
||||
response = self.generate_report(dev, ticket_id)
|
||||
self.post_response(response, ticket_id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue