]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool domain: Run in interactive mode if no args are supplied
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 25 Apr 2023 22:31:51 +0000 (10:31 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 16 May 2023 23:29:32 +0000 (23:29 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15363

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain/provision.py

index 9287ddb1051e2644d27690d87589bd86e91968bc..c90eb36a0774201945f58b53a71711818808fdfc 100644 (file)
@@ -189,7 +189,7 @@ class cmd_domain_provision(Command):
             if suggested_forwarder is None:
                 suggested_forwarder = "none"
 
-        if len(self.raw_argv) == 1:
+        if not self.raw_argv:
             interactive = True
 
         if interactive: