From 453aabf5daa107fb182702bc9f5b1e606f7a83f2 Mon Sep 17 00:00:00 2001 From: Benjamin Diaz Date: Wed, 22 Aug 2018 17:31:58 -0300 Subject: [PATCH] Removes call to .lower on vnf_member_index in alarm creation Currently this does not produce an error just because vnf_member_index is been passed as a string in the kafka msg. Considering that in the IM it is a integer, this may change in the future, in which case this would fail. It also does not make any sense and can be considered a typo. Signed-off-by: Benjamin Diaz --- osm_mon/plugins/OpenStack/Aodh/alarming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_mon/plugins/OpenStack/Aodh/alarming.py b/osm_mon/plugins/OpenStack/Aodh/alarming.py index f380b4e..cea12ba 100644 --- a/osm_mon/plugins/OpenStack/Aodh/alarming.py +++ b/osm_mon/plugins/OpenStack/Aodh/alarming.py @@ -108,7 +108,7 @@ class Alarming(object): alarm_details['operation'].lower(), alarm_details['metric_name'].lower(), alarm_details['vdu_name'].lower(), - alarm_details['vnf_member_index'].lower(), + alarm_details['vnf_member_index'], alarm_details['ns_id'].lower() ) status = True -- 2.25.1