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 4, 2018
1 parent e30cbe5 commit 3595e93
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 @@ -827,10 +827,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 3595e93

Please sign in to comment.