Use machine readable output for list
Use machine readable output for list

This actually fixes the issue in #38290 while the other change should improve the output for the states.
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt