Skip to content

Commit

Permalink
s4:samba-tool fsmo * - fix missing "takes_optiongroups"
Browse files Browse the repository at this point in the history
This has been reported in bug #8755.

Reviewed-by: Jelmer
  • Loading branch information
mwallnoefer committed Feb 17, 2012
1 parent 476d503 commit fa89f27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source4/scripting/python/samba/netcmd/fsmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down
2 changes: 2 additions & 0 deletions source4/utils/tests/test_samba_tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa89f27

Please sign in to comment.