Release of 2.20 #46

Merged
stefan merged 46 commits from master into stable 2021-07-27 12:44:15 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit ff722835ab - Show all commits

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:])}