Skip to content

Commit

Permalink
Update collectors/SDRSPropertiesCollector.py
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 26, 2024
1 parent 569cdf3 commit 9ce6e90
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 @@ -28,7 +28,7 @@ def unlock_nested_values(self, statkey, metric_value):
def config_sdrsconfig_vmStorageAntiAffinityRules(self, metric_value):

metric_value = json.loads(metric_value)
rules = metric_value.get("rules") if metric_value.get("rules") else []
rules = metric_value.get("rules") or []

amount_rules = len(rules)

Expand Down

0 comments on commit 9ce6e90

Please sign in to comment.