From: diazb Date: Tue, 22 May 2018 20:21:08 +0000 (-0700) Subject: Fixes log format bug when alarm action not present X-Git-Tag: BUILD_v4.0.1_1~4 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FMON.git;a=commitdiff_plain;h=24b8309395b534ffe4bff9b07f665951555ac955 Fixes log format bug when alarm action not present Signed-off-by: diazb Change-Id: I08b8476c2ffc3c89554fe77a11dbaabbd221d071 --- diff --git a/policy_module/osm_policy_module/core/agent.py b/policy_module/osm_policy_module/core/agent.py index aa3f3ff..3a3b20c 100644 --- a/policy_module/osm_policy_module/core/agent.py +++ b/policy_module/osm_policy_module/core/agent.py @@ -113,7 +113,7 @@ class PolicyModuleAgent: log.info("Sending scaling action message for ns: %s", alarm_id) lcm_client.scale(alarm.scaling_record.nsr_id, alarm.scaling_record.name, alarm.action) except ScalingAlarm.DoesNotExist: - log.info("There is no action configured for alarm %.", alarm_id) + log.info("There is no action configured for alarm %s.", alarm_id) except Exception: log.exception("Error consuming message: ")