Skip to content

Commit

Permalink
Use list_all in conditions update
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Pogue committed Apr 23, 2019
1 parent f27de61 commit bf0d762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newrelic_api/alert_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def update(
}
"""
conditions_dict = self.list(policy_id)
conditions_dict = self.list_all(policy_id)
target_condition = None
for condition in conditions_dict['conditions']:
if int(condition['id']) == alert_condition_id:
Expand Down

0 comments on commit bf0d762

Please sign in to comment.