chore: minor fix for dashboard utility script
This commit is contained in:
parent
f2a82fd7f9
commit
ff722835ab
|
@ -37,7 +37,7 @@ with open(config_file, 'r') as yaml_contents:
|
||||||
configmap = ''
|
configmap = ''
|
||||||
if 'condition' in config:
|
if 'condition' in config:
|
||||||
# use index function to make go template happy if '-' in names
|
# 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('.')
|
tokens = config['condition'].split('.')
|
||||||
configmap = '''{{- if index .Values %(condition)s }}
|
configmap = '''{{- if index .Values %(condition)s }}
|
||||||
''' % {'condition': ' '.join(f'"{w}"' for w in tokens[2:])}
|
''' % {'condition': ' '.join(f'"{w}"' for w in tokens[2:])}
|
||||||
|
|
Loading…
Reference in New Issue