1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

upgrade: use logger.warning.

This commit is contained in:
Jelmer Vernooij
2011-11-11 18:32:55 +01:00
parent 576ea40ece
commit c529c12c7d

View File

@ -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()