Skip to content

Commit 5d92993

Browse files
committed
Cast state_volume_size to int for calculation
1 parent 8e2de65 commit 5d92993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

group_vars/prometheus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ openondemand_address: "{{ hostvars[groups['openondemand'].0].api_address if 'ope
88
prometheus_scrape_configs: "{{ prometheus_scrape_configs_default + (openondemand_scrape_configs if ( 'openondemand' in groups ) else [] ) }}"
99

1010
# Fix Prometheus storage retention size to 80% of state volume size
11-
prometheus_storage_retention_size: "{{ ( 0.8 * hostvars[groups['openstack']].state_volume_size ) | int ~ 'GB' }}"
11+
prometheus_storage_retention_size: "{{ ( 0.8 * ( hostvars[groups['openstack']].state_volume_size | int ) ) | int ~ 'GB' }}"

0 commit comments

Comments
 (0)