Skip to content

Commit

Permalink
return value directly
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 a5a5a8f commit 60eeadf
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 @@ -38,7 +38,7 @@ def config_sdrsconfig_vmStorageAntiAffinityRules(self, metric_value):
value = 0

for i, rule in enumerate(rules):
mapped_vms = self.vm_mapping_helper(rule.get('virtualMachines'))
mapped_vms = self.vm_mapping_helper(rule.get('virtualMachines'), [])
for vm in mapped_vms:
rule_label_values.append([
f'{i+1}/{amount_rules}',
Expand Down

0 comments on commit 60eeadf

Please sign in to comment.