From: Matthias Dieter Wallnöfer Date: Fri, 17 Feb 2012 20:24:48 +0000 (+0100) Subject: s4:samba-tool fsmo * - fix missing "takes_optiongroups" X-Git-Tag: samba-4.0.0alpha18~98 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=fa89f2756f2d56ff83a5a6646ccff759b03f900d s4:samba-tool fsmo * - fix missing "takes_optiongroups" This has been reported in bug #8755. Reviewed-by: Jelmer --- diff --git a/source4/scripting/python/samba/netcmd/fsmo.py b/source4/scripting/python/samba/netcmd/fsmo.py index 958e5b8719b..f4e03b2af6b 100644 --- a/source4/scripting/python/samba/netcmd/fsmo.py +++ b/source4/scripting/python/samba/netcmd/fsmo.py @@ -125,6 +125,12 @@ class cmd_fsmo_show(Command): synopsis = "%prog [options]" + takes_optiongroups = { + "sambaopts": options.SambaOptions, + "credopts": options.CredentialsOptions, + "versionopts": options.VersionOptions, + } + takes_options = [ Option("-H", "--URL", help="LDB URL for database or target server", type=str, metavar="URL", dest="H"), @@ -182,6 +188,12 @@ class cmd_fsmo_transfer(Command): synopsis = "%prog [options]" + takes_optiongroups = { + "sambaopts": options.SambaOptions, + "credopts": options.CredentialsOptions, + "versionopts": options.VersionOptions, + } + takes_options = [ Option("-H", "--URL", help="LDB URL for database or target server", type=str, metavar="URL", dest="H"), diff --git a/source4/utils/tests/test_samba_tool.sh b/source4/utils/tests/test_samba_tool.sh index 0e03ee4d75c..7057312fcbb 100755 --- a/source4/utils/tests/test_samba_tool.sh +++ b/source4/utils/tests/test_samba_tool.sh @@ -40,4 +40,6 @@ testit "domain level.show" $VALGRIND $samba_tool domain level show testit "domain info" $VALGRIND $samba_tool domain info $SERVER_IP +testit "fsmo show" $VALGRIND $samba_tool fsmo show + exit $failed