Commit 540ea246 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accouting: Skip alarm if cloud contract is disabled

parent b9b4f94a
portal = context.getPortalObject()
if not portal.portal_preferences.getPreferredCloudContractEnabled():
return True
select_dict= {'default_aggregate_uid': None}
portal.portal_catalog.searchAndActivate(
portal_type=('Slave Instance', 'Software Instance'),
......
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