]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool drs showrepl: use global --color option
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 9 Sep 2022 02:50:13 +0000 (14:50 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Sep 2022 05:46:36 +0000 (05:46 +0000)
This changes the default from --color=no to --color=auto.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/drs.py

index 2262eaf62d97cb9f1c1247ddfaaa7d1b3d5ce212..6a4063a91d696cd807b054e74c90d32935b74057 100644 (file)
@@ -92,7 +92,6 @@ class cmd_drs_showrepl(Command):
     """Show replication status."""
 
     synopsis = "%prog [<DC>] [options]"
-    use_colour = False
 
     takes_optiongroups = {
         "sambaopts": options.SambaOptions,
@@ -118,8 +117,6 @@ class cmd_drs_showrepl(Command):
                dest='format', action='store_const', const='classic',
                default=DEFAULT_SHOWREPL_FORMAT),
         Option("-v", "--verbose", help="Be verbose", action="store_true"),
-        Option("--color", help="Use colour output (yes|no|auto)",
-               default='no'),
     ]
 
     takes_args = ["DC?"]
@@ -185,8 +182,7 @@ class cmd_drs_showrepl(Command):
     def run(self, DC=None, sambaopts=None,
             credopts=None, versionopts=None,
             format=DEFAULT_SHOWREPL_FORMAT,
-            verbose=False, color='no'):
-        self.apply_colour_choice(color)
+            verbose=False):
         self.lp = sambaopts.get_loadparm()
         if DC is None:
             DC = common.netcmd_dnsname(self.lp)