mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Remove broken yaml dump arg, rename metavars
This commit is contained in:
@@ -79,7 +79,7 @@ def read_pillar(pillar: str):
|
|||||||
def write_pillar(pillar: str, content: dict):
|
def write_pillar(pillar: str, content: dict):
|
||||||
try:
|
try:
|
||||||
with open(pillar, 'w') as f:
|
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:
|
except:
|
||||||
print(f'Could not open {pillar}', file=sys.stderr)
|
print(f'Could not open {pillar}', file=sys.stderr)
|
||||||
sys.exit(3)
|
sys.exit(3)
|
||||||
@@ -195,12 +195,12 @@ def main():
|
|||||||
|
|
||||||
enable = subparsers.add_parser('enable')
|
enable = subparsers.add_parser('enable')
|
||||||
enable.set_defaults(func=enable_modules)
|
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)
|
enable.add_argument('--apply', action='store_const', const=True, required=False, help=enable_apply_help)
|
||||||
|
|
||||||
disable = subparsers.add_parser('disable')
|
disable = subparsers.add_parser('disable')
|
||||||
disable.set_defaults(func=disable_modules)
|
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)
|
disable.add_argument('--apply', action='store_const', const=True, required=False, help=disable_apply_help)
|
||||||
|
|
||||||
list = subparsers.add_parser('list')
|
list = subparsers.add_parser('list')
|
||||||
|
|||||||
Reference in New Issue
Block a user