_L < d Z ddlZddlmZ ddlmZ ddlmZ e dk r e ej
e Ze d Z
e
d
Ze ddd
ed e
d Ze ddd
ed e Z e Zej d
k re ej dS ej dk re ej dS edS )z
Admin account POST modification hook.
This script must be called AFTER different admin-related
changes in control panel. See --help and docs for detailed
description of actions and parameters.
N)ModifyAdminHook)setup_logger_and_sentry)
valid_name__main__)descriptioncommand)destcreatez--namez-nTz#Name of newly created admin account)requiredtypehelpdeletezName of deleted admin account)__doc__argparseclcommon.public_hooks.libr clcommon.public_hooksr !clcommon.public_hooks.lib.helpersr _valid_name__name__ArgumentParserparseradd_subparsers
subparsers
add_parserr
add_argumentr
parse_argsargslistenerr post_create_adminnamepost_delete_adminNotImplementedError /builddir/build/BUILDROOT/alt-python27-cllib-3.4.40-1.el9.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/bin/post_modify_admin.py