Commit 72a3ddb3 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Remove whitespaces.

parent 93c16e43
......@@ -4,7 +4,7 @@ ticket_title = "Hosting Subscription %s is failing." % context.getTitle()
description = "%s contains software instances which are unallocated or reporting errors." % (
context.getTitle())
support_request = context.Base_generateSupportRequestForSlapOS(
ticket_title,
description,
......@@ -12,11 +12,11 @@ support_request = context.Base_generateSupportRequestForSlapOS(
if support_request is None:
return
person = context.getDestinationSectionValue(portal_type="Person")
if not person:
return
if support_request.getSimulationState() not in ["validated", "suspended"]:
support_request.validate()
......@@ -32,6 +32,6 @@ if notification_message is not None:
message = notification_message.asText(
substitution_method_parameter_dict={'mapping_dict':mapping_dict})
return support_request.SupportRequest_trySendNotificationMessage(
ticket_title, message, person.getRelativeUrl())
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