summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/netcmd/domain.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py
index 871f72f952..35e9d29f2c 100644
--- a/source4/scripting/python/samba/netcmd/domain.py
+++ b/source4/scripting/python/samba/netcmd/domain.py
@@ -570,16 +570,16 @@ class cmd_domain_samba3upgrade(Command):
if not dbdir and not testparm:
raise CommandError("Please specify either dbdir or testparm")
- if dbdir and testparm:
- self.outf.write("warning: both dbdir and testparm specified, ignoring dbdir.\n")
- dbdir = None
-
logger = self.get_logger()
if quiet:
logger.setLevel(logging.WARNING)
else:
logger.setLevel(logging.INFO)
+ if dbdir and testparm:
+ logger.warning("both dbdir and testparm specified, ignoring dbdir.")
+ dbdir = None
+
lp = sambaopts.get_loadparm()
s3conf = s3param.get_context()