Remove broken yaml dump arg, rename metavars

This commit is contained in:
William Wernert
2021-07-29 10:57:53 -04:00
parent 811b32735e
commit 5894b85bd1

View File

@@ -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')