mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
samba-tool: binary uses samba_tool function
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a1c615f87d
commit
4bfcd16a3c
@ -30,15 +30,7 @@ sys.path.insert(0, "bin/python")
|
||||
import signal
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
|
||||
from samba.netcmd.main import cmd_sambatool
|
||||
samba_tool = cmd_sambatool()
|
||||
from samba.netcmd.main import samba_tool
|
||||
|
||||
try:
|
||||
command, args = samba_tool._resolve("samba-tool", *sys.argv[1:])
|
||||
retval = command._run(*args)
|
||||
except SystemExit as e:
|
||||
retval = e.code
|
||||
except Exception as e:
|
||||
command.show_command_error(e)
|
||||
retval = 1
|
||||
retval = samba_tool(*sys.argv[1:])
|
||||
sys.exit(retval)
|
||||
|
Loading…
Reference in New Issue
Block a user