aboutsummaryrefslogtreecommitdiffstats
path: root/policyhandler/deploy_handler.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/deploy_handler.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/deploy_handler.py')
-rw-r--r--policyhandler/deploy_handler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/policyhandler/deploy_handler.py b/policyhandler/deploy_handler.py
index 493b7d5..f1a1294 100644
--- a/policyhandler/deploy_handler.py
+++ b/policyhandler/deploy_handler.py
@@ -133,12 +133,12 @@ class DeployHandler(object):
prev_server_instance_uuid = DeployHandler._server_instance_uuid
DeployHandler._server_instance_uuid = result.get("server_instance_uuid")
- need_to_catch_up = (prev_server_instance_uuid
+ deployment_handler_changed = (prev_server_instance_uuid
and prev_server_instance_uuid != DeployHandler._server_instance_uuid)
- if need_to_catch_up:
- log_line = "need_to_catch_up: {1} != {0}" \
+ if deployment_handler_changed:
+ log_line = "deployment_handler_changed: {1} != {0}" \
.format(prev_server_instance_uuid, DeployHandler._server_instance_uuid)
sub_aud.info(log_line)
DeployHandler._logger.info(log_line)
- return need_to_catch_up
+ return deployment_handler_changed