Commit 1e8ec058 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: Project_createSupportRequestWithCausality already checks if Support Request exists

parent 08396e5e
......@@ -53,17 +53,13 @@ for software_installation in software_installation_list:
if should_notify:
support_request = context.Base_getSupportRequestInProgress(
title=ticket_title)
if support_request is None:
project = context.getFollowUpValue()
support_request = project.Project_createSupportRequestWithCausality(
ticket_title,
description,
causality=context.getRelativeUrl(),
destination_decision=project.getDestination()
)
project = context.getFollowUpValue()
support_request = project.Project_createSupportRequestWithCausality(
ticket_title,
description,
causality=context.getRelativeUrl(),
destination_decision=project.getDestination()
)
if support_request is None:
return
......
......@@ -76,10 +76,6 @@ if should_notify:
support_request = context.Base_getSupportRequestInProgress(
title=node_ticket_title)
if support_request is None:
support_request = context.Base_getSupportRequestInProgress(
title=ticket_title)
if support_request is None:
project = context.getFollowUpValue()
support_request = project.Project_createSupportRequestWithCausality(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment