diff --git a/salt/common/tools/sbin/so-rule b/salt/common/tools/sbin/so-rule index 71f17dc53..603a6cae9 100755 --- a/salt/common/tools/sbin/so-rule +++ b/salt/common/tools/sbin/so-rule @@ -80,7 +80,10 @@ def find_minion_pillar() -> str: print_err('Could not find manager-type pillar (eval, standalone, manager, managersearch, import). Are you running this script on the manager?') sys.exit(3) elif len(result) > 1: - res_str = ', '.join(f'\"{result}\"') + res_arr = [] + for r in result: + res_arr.append(f'\"{r}\"') + res_str = ', '.join(res_arr) print_err('(This should not happen, the system is in an error state if you see this message.)\n') print_err('More than one manager-type pillar exists, minion id\'s listed below:') print_err(f' {res_str}')