summaryrefslogtreecommitdiffstats
path: root/policyhandler/policy_rest.py
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-03-16 12:30:08 -0400
committerAlex Shatov <alexs@att.com>2018-03-16 12:30:08 -0400
commit7e220c8dd68a969885287689c15d8dc711a06f8a (patch)
tree45afeb4e756865f3fac0a6c0c73b90b821d0ff75 /policyhandler/policy_rest.py
parenta2b262994a62286e1c98fd9939115c6e64ed27ee (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.py2
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))