Removes call to .lower on vnf_member_index in alarm creation 53/6453/1
authorBenjamin Diaz <bdiaz@whitestack.com>
Wed, 22 Aug 2018 20:31:58 +0000 (17:31 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Fri, 31 Aug 2018 22:38:54 +0000 (19:38 -0300)
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 <bdiaz@whitestack.com>
osm_mon/plugins/OpenStack/Aodh/alarming.py

index f380b4e..cea12ba 100644 (file)
@@ -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