diff options
author | Alex Shatov <alexs@att.com> | 2018-03-16 12:30:08 -0400 |
---|---|---|
committer | Alex Shatov <alexs@att.com> | 2018-03-16 12:30:08 -0400 |
commit | 7e220c8dd68a969885287689c15d8dc711a06f8a (patch) | |
tree | 45afeb4e756865f3fac0a6c0c73b90b821d0ff75 /policyhandler/policy_rest.py | |
parent | a2b262994a62286e1c98fd9939115c6e64ed27ee (diff) |
2.3.1 policy-handler - catch_up more often
- enforce(do not skip) next catchup if failed to
send to deployment-handler
- more audit info and logging
- cleaner queue handling in the policy-updater thread
= queue reset and task_done on the to level in the run
Change-Id: If3080d08f0f6560e3f0bd509fde94a7f8191b228
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-389
Diffstat (limited to 'policyhandler/policy_rest.py')
-rw-r--r-- | policyhandler/policy_rest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/policyhandler/policy_rest.py b/policyhandler/policy_rest.py index b11a79a..4eee154 100644 --- a/policyhandler/policy_rest.py +++ b/policyhandler/policy_rest.py @@ -444,7 +444,7 @@ class PolicyRest(object): result[ERRORED_POLICIES] = dict( pair for (_, eps, _) in latest_policies if eps for pair in eps.iteritems()) - result[ERRORED_SCOPES] = [esp for (_, _, esp) in latest_policies if esp] + result[ERRORED_SCOPES] = sorted([esp for (_, _, esp) in latest_policies if esp]) PolicyRest._logger.debug("got policies for policy_filters: %s. result: %s", str_policy_filters, json.dumps(result)) |