Commit 03b7ecdd authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: lint

parent ddf339de
...@@ -6,7 +6,7 @@ item = context ...@@ -6,7 +6,7 @@ item = context
portal = context.getPortalObject() portal = context.getPortalObject()
tag = '%s_%s' % (item.getUid(), script.id) tag = '%s_%s' % (item.getUid(), script.id)
activate_kw = {'tag': tag} # activate_kw = {'tag': tag}
if 0 < portal.portal_activities.countMessageWithTag(tag): if 0 < portal.portal_activities.countMessageWithTag(tag):
# nothing to do # nothing to do
return return
...@@ -32,7 +32,7 @@ service = None ...@@ -32,7 +32,7 @@ service = None
destination_decision_value = None destination_decision_value = None
resource_vcl = [] resource_vcl = []
if item.getPortalType() == 'Instance Tree': if item.getPortalType() == 'Instance Tree':
service, software_release, software_type = item.InstanceTree_getSoftwareProduct() service, _, software_type = item.InstanceTree_getSoftwareProduct()
destination_decision_value = item.getDestinationSectionValue(portal_type="Person") destination_decision_value = item.getDestinationSectionValue(portal_type="Person")
if service is not None: if service is not None:
resource_vcl = [ resource_vcl = [
......
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