samba-tool domain: Add --quiet to common options
authorAndrew Bartlett <abartlet@samba.org>
Sun, 13 May 2018 23:04:28 +0000 (11:04 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 15 May 2018 19:13:26 +0000 (21:13 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/netcmd/domain.py

index 85ce236298a918d715d3a5af0a275c00680654e9..e5db665a16bf8820d813af970ef88db0ef72582c 100644 (file)
@@ -107,7 +107,8 @@ string_version_to_constant = {
 
 common_provision_join_options = [
     Option("--targetdir", metavar="DIR",
-           help="Set target directory (where to store provision)", type=str)
+           help="Set target directory (where to store provision)", type=str),
+    Option("--quiet", help="Be quiet", action="store_true"),
 ]
 
 def get_testparm_var(testparm, smbconf, varname):
@@ -232,7 +233,6 @@ class cmd_domain_provision(Command):
                 help="choose 'nobody' user"),
          Option("--users", type="string", metavar="GROUPNAME",
                 help="choose 'users' group"),
-         Option("--quiet", help="Be quiet", action="store_true"),
          Option("--blank", action="store_true",
                 help="do not add users or groups, just the structure"),
          Option("--server-role", type="choice", metavar="ROLE",
@@ -582,7 +582,6 @@ class cmd_domain_dcpromo(Command):
                    "BIND9_DLZ uses samba4 AD to store zone information, "
                    "NONE skips the DNS setup entirely (this DC will not be a DNS server)",
                default="SAMBA_INTERNAL"),
-        Option("--quiet", help="Be quiet", action="store_true"),
         Option("--verbose", help="Be verbose", action="store_true")
         ]
 
@@ -668,7 +667,6 @@ class cmd_domain_join(Command):
         Option("--plaintext-secrets", action="store_true",
                help="Store secret/sensitive values as plain text on disk" +
                     "(default is to encrypt secret/ensitive values)"),
-        Option("--quiet", help="Be quiet", action="store_true"),
         Option("--verbose", help="Be verbose", action="store_true")
        ]