From bf0d7625120892caf3805b954c0269b918a6e5f1 Mon Sep 17 00:00:00 2001 From: Alex Pogue Date: Wed, 19 Dec 2018 15:05:01 -0600 Subject: [PATCH] Use list_all in conditions update --- newrelic_api/alert_conditions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newrelic_api/alert_conditions.py b/newrelic_api/alert_conditions.py index a40dfee..c61fd88 100644 --- a/newrelic_api/alert_conditions.py +++ b/newrelic_api/alert_conditions.py @@ -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: