--extra-filerefs include files even if no refs in states to apply

Fixes #47496
This commit is contained in:
Matei Albu 2018-05-06 11:56:18 +02:00
parent 8df37f734a
commit d67239aae7

View file

@ -135,9 +135,9 @@ def lowstate_file_refs(chunks, extras=''):
elif state.startswith('__'):
continue
crefs.extend(salt_refs(chunk[state]))
if saltenv not in refs:
refs[saltenv] = []
if crefs:
if saltenv not in refs:
refs[saltenv] = []
refs[saltenv].append(crefs)
if extras:
extra_refs = extras.split(',')