Skip to content
Snippets Groups Projects
Commit ec0cb81b authored by David Schmitz's avatar David Schmitz
Browse files

fix for broken flowspec.tasks.check_sync

parent 4150b456
Branches
No related tags found
No related merge requests found
...@@ -282,7 +282,7 @@ def check_sync(route_name=None, selected_routes=[]): ...@@ -282,7 +282,7 @@ def check_sync(route_name=None, selected_routes=[]):
if route.has_expired() and (route.status != 'EXPIRED' and route.status != 'ADMININACTIVE' and route.status != 'INACTIVE' and route.status != 'INACTIVE_TODELETE' and route.status != 'PENDING_TODELETE'): if route.has_expired() and (route.status != 'EXPIRED' and route.status != 'ADMININACTIVE' and route.status != 'INACTIVE' and route.status != 'INACTIVE_TODELETE' and route.status != 'PENDING_TODELETE'):
if route.status != 'ERROR': if route.status != 'ERROR':
logger.info('Expiring %s route %s' %(route.status, route.name)) logger.info('Expiring %s route %s' %(route.status, route.name))
subtask(delete).delay(route, reason="EXPIRED") subtask(deactivate_route).delay(str(route.id), reason="EXPIRED")
else: else:
if route.status != 'EXPIRED': if route.status != 'EXPIRED':
route.check_sync() route.check_sync()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment