Skip to content

Commit 5ee602c

Browse files
committed
reorder scope and regions check
1 parent 8c069d3 commit 5ee602c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

linode_api4/groups/monitor.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,15 @@ def create_alert_definition(
275275
"rule_criteria": rule_criteria,
276276
"trigger_conditions": trigger_conditions,
277277
}
278+
279+
if entity_ids is not None:
280+
params["entity_ids"] = entity_ids
281+
if description is not None:
282+
params["description"] = description
278283
if scope is not None:
279284
params["scope"] = scope
280285
if regions is not None:
281286
params["regions"] = regions
282-
if description is not None:
283-
params["description"] = description
284-
if entity_ids is not None:
285-
params["entity_ids"] = entity_ids
286287

287288
# API will validate service_type and return an error if missing
288289
result = self.client.post(

0 commit comments

Comments
 (0)