X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=plugins%2FCloudWatch%2Fmetric_alarms.py;h=8d38e2f3e407217bbef651995c205e1338888856;hb=9f6a271648de423686a8de9882ea44020719e3fe;hp=97b3c07233ab0a2b72bb4456e248047f9e30efd5;hpb=ba691c177e68226a3ec74ba6c5ccf0d7e544a6bb;p=osm%2FMON.git diff --git a/plugins/CloudWatch/metric_alarms.py b/plugins/CloudWatch/metric_alarms.py index 97b3c07..8d38e2f 100644 --- a/plugins/CloudWatch/metric_alarms.py +++ b/plugins/CloudWatch/metric_alarms.py @@ -73,7 +73,8 @@ class MetricAlarm(): alarm_id = alarm_info['alarm_name'] + "_" + alarm_info['resource_uuid'] if self.is_present(cloudwatch_conn,alarm_id)['status'] == True: alarm_id = None - log.debug ("Alarm already exists, Try updating the alarm using 'update_alarm_configuration()'") + log.debug ("Alarm already exists, Try updating the alarm using 'update_alarm_configuration()'") + return alarm_id else: try: if alarm_info['statistic'] in STATISTICS: