Skip to content

Commit

Permalink
fetch alert definitions at first iteration, too
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Tief committed Jul 18, 2023
1 parent 4c37132 commit 3464cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventory/Builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def query_vrops(self, target, vrops_short_name, iteration):
self.vcops_dict[target] = vcops_adapter
self.sddc_dict[target] = sddc_adapter

if iteration % 10 == 0 and not self.alertdefinitions:
if (iteration == 1 or iteration % 10 == 0) and not self.alertdefinitions:
self.alertdefinitions = Vrops.get_alertdefinitions(vrops, target, token)

self.service_states, self.response_codes[target]["node_services"], self.response_times[target]["node_services"] = \
Expand Down

0 comments on commit 3464cad

Please sign in to comment.