highstate output: allow '_id' mode for each output mode

This commit is contained in:
Ronald van Zantvoort 2017-09-14 13:46:54 +02:00
parent 8739cd62a8
commit 03c673bb00

View file

@ -246,7 +246,7 @@ def _format_host(host, data):
state_output = __opts__.get('state_output', 'full').lower()
comps = [sdecode(comp) for comp in tname.split('_|-')]
if state_output == 'mixed_id':
if state_output.endswith('_id'):
# Swap in the ID for the name. Refs #35137
comps[2] = comps[1]