From: Benjamin Diaz Date: Wed, 22 Aug 2018 20:31:58 +0000 (-0300) Subject: Removes call to .lower on vnf_member_index in alarm creation X-Git-Tag: v5.0.0~44^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=453aabf5daa107fb182702bc9f5b1e606f7a83f2;p=osm%2FMON.git 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 --- 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