Skip to content

Commit

Permalink
samba-tool: Fix --quiet option in domain samba3upgrade
Browse files Browse the repository at this point in the history
--quiet option does not require an argument
  • Loading branch information
lauria authored and jelmer committed Nov 3, 2011
1 parent 16437ed commit 64e7e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source4/scripting/python/samba/netcmd/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,15 +548,15 @@ class cmd_domain_samba3upgrade(Command):
help="Path to samba3 testparm utility from the previous installation. This allows the default paths of the previous installation to be followed"),
Option("--targetdir", type="string", metavar="DIR",
help="Path prefix where the new Samba 4.0 AD domain should be initialised"),
Option("--quiet", help="Be quiet"),
Option("--quiet", help="Be quiet", action="store_true"),
Option("--use-xattrs", type="choice", choices=["yes","no","auto"], metavar="[yes|no|auto]",
help="Define if we should use the native fs capabilities or a tdb file for storing attributes likes ntacl, auto tries to make an inteligent guess based on the user rights and system capabilities", default="auto"),
]

takes_args = ["smbconf"]

def run(self, smbconf=None, targetdir=None, dbdir=None, testparm=None,
quiet=None, use_xattrs=None, sambaopts=None, versionopts=None):
quiet=False, use_xattrs=None, sambaopts=None, versionopts=None):

if not os.path.exists(smbconf):
raise CommandError("File %s does not exist" % smbconf)
Expand Down

0 comments on commit 64e7e44

Please sign in to comment.