1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-17 04:23:50 +03:00

samba-tool drs showrepl: add a --verbose flag

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall
2018-06-07 14:35:38 +12:00
committed by Andrew Bartlett
parent 99aabf436d
commit 50e3bfa4f5

View File

@@ -101,6 +101,7 @@ class cmd_drs_showrepl(Command):
Option("--classic", help="print local replication details", Option("--classic", help="print local replication details",
dest='format', action='store_const', const='classic', dest='format', action='store_const', const='classic',
default=DEFAULT_SHOWREPL_FORMAT), default=DEFAULT_SHOWREPL_FORMAT),
Option("-v", "--verbose", help="Be verbose", action="store_true"),
] ]
takes_args = ["DC?"] takes_args = ["DC?"]
@@ -153,12 +154,14 @@ class cmd_drs_showrepl(Command):
def run(self, DC=None, sambaopts=None, def run(self, DC=None, sambaopts=None,
credopts=None, versionopts=None, credopts=None, versionopts=None,
format=DEFAULT_SHOWREPL_FORMAT): format=DEFAULT_SHOWREPL_FORMAT,
verbose=False):
self.lp = sambaopts.get_loadparm() self.lp = sambaopts.get_loadparm()
if DC is None: if DC is None:
DC = common.netcmd_dnsname(self.lp) DC = common.netcmd_dnsname(self.lp)
self.server = DC self.server = DC
self.creds = credopts.get_credentials(self.lp, fallback_machine=True) self.creds = credopts.get_credentials(self.lp, fallback_machine=True)
self.verbose = verbose
output_function = { output_function = {
'json': self.json_output, 'json': self.json_output,