chore: minor fix for dashboard utility script

This commit is contained in:
Stefan Reimer 2021-06-30 12:47:50 +02:00
parent f2a82fd7f9
commit ff722835ab
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ with open(config_file, 'r') as yaml_contents:
configmap = ''
if 'condition' in config:
# use index function to make go template happy if '-' in names
if '-' in config['condition']:
if '-' in config['condition'] and "index" not in config['condition']:
tokens = config['condition'].split('.')
configmap = '''{{- if index .Values %(condition)s }}
''' % {'condition': ' '.join(f'"{w}"' for w in tokens[2:])}