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:
@ -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()
|
||||
|
Reference in New Issue
Block a user