Skip to content

Commit

Permalink
Modified code as per review comment
Browse files Browse the repository at this point in the history
tendrl-bug-id: #598

Signed-off-by: GowthamShanmugasundaram <[email protected]>
  • Loading branch information
GowthamShanmugam committed Apr 5, 2018
1 parent 2c91b7e commit 4787a92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tendrl/gluster_integration/sds_sync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,10 +828,10 @@ def update_cluster_alert_count():
severity = ["WARNING", "CRITICAL"]
try:
alert_counts = get_volume_alert_counts()
alerts_arr = NS.tendrl.objects.ClusterAlert(
alerts = NS.tendrl.objects.ClusterAlert(
tags={'integration_id': NS.tendrl_context.integration_id}
).load_all()
for alert in alerts_arr:
for alert in alerts:
alert.tags = json.loads(alert.tags)
if alert.severity in severity:
cluster_alert_count += 1
Expand Down

0 comments on commit 4787a92

Please sign in to comment.