mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
samba-tool: really deprecate 'samba-tool user add'
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
9722f064e7
commit
959384ff18
@ -208,10 +208,10 @@ class cmd_user_add(cmd_user_create):
|
|||||||
# migrate to create
|
# migrate to create
|
||||||
|
|
||||||
def run(self, *args, **kwargs):
|
def run(self, *args, **kwargs):
|
||||||
self.err.write(
|
self.outf.write(
|
||||||
"Note: samba-tool user add is deprecated. "
|
"Note: samba-tool user add is deprecated. "
|
||||||
"Please use samba-tool user create for the same function.\n")
|
"Please use samba-tool user create for the same function.\n")
|
||||||
return super(self, cmd_user_add).run(*args, **kwargs)
|
return super(cmd_user_add, self).run(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class cmd_user_delete(Command):
|
class cmd_user_delete(Command):
|
||||||
@ -615,7 +615,7 @@ class cmd_user(SuperCommand):
|
|||||||
"""User management."""
|
"""User management."""
|
||||||
|
|
||||||
subcommands = {}
|
subcommands = {}
|
||||||
subcommands["add"] = cmd_user_create()
|
subcommands["add"] = cmd_user_add()
|
||||||
subcommands["create"] = cmd_user_create()
|
subcommands["create"] = cmd_user_create()
|
||||||
subcommands["delete"] = cmd_user_delete()
|
subcommands["delete"] = cmd_user_delete()
|
||||||
subcommands["disable"] = cmd_user_disable()
|
subcommands["disable"] = cmd_user_disable()
|
||||||
|
Reference in New Issue
Block a user