Skip to content

Commit

Permalink
remove condition
Browse files Browse the repository at this point in the history
Co-authored-by: Tommy Sauer <tommy.sauer@sap.com>
  • Loading branch information
richardtief and viennaa authored Feb 23, 2024
1 parent 4c23866 commit bd91bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collectors/SDRSPropertiesCollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def config_sdrsconfig_vmStorageAntiAffinityRules(self, metric_value):
metric_value = json.loads(metric_value)
rules = metric_value.get("rules") if metric_value.get("rules") else []

amount_rules = len(rules) if rules else 0
amount_rules = len(rules)

rule_labels = ['rule', 'rule_name', 'rule_type', 'valid', 'virtualmachine']
rule_label_values = []
Expand Down

0 comments on commit bd91bff

Please sign in to comment.