diff --git a/salt/common/tools/sbin/so-learn b/salt/common/tools/sbin/so-learn index 85b70730d..53e2b5020 100644 --- a/salt/common/tools/sbin/so-learn +++ b/salt/common/tools/sbin/so-learn @@ -79,7 +79,7 @@ def read_pillar(pillar: str): def write_pillar(pillar: str, content: dict): try: with open(pillar, 'w') as f: - yaml.dump(content, f, default_flow_style=False, sort_keys=False) + yaml.dump(content, f, default_flow_style=False) except: print(f'Could not open {pillar}', file=sys.stderr) sys.exit(3) @@ -195,12 +195,12 @@ def main(): enable = subparsers.add_parser('enable') enable.set_defaults(func=enable_modules) - enable.add_argument('modules', metavar='ML_MODULES', nargs='+', help=module_help_str) + enable.add_argument('modules', metavar='ML_MODULE', nargs='+', help=module_help_str) enable.add_argument('--apply', action='store_const', const=True, required=False, help=enable_apply_help) disable = subparsers.add_parser('disable') disable.set_defaults(func=disable_modules) - disable.add_argument('modules', metavar='ML_MODULES', nargs='+', help=module_help_str) + disable.add_argument('modules', metavar='ML_MODULE', nargs='+', help=module_help_str) disable.add_argument('--apply', action='store_const', const=True, required=False, help=disable_apply_help) list = subparsers.add_parser('list')