]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python: Create targetdir recursively
authorAndreas Schneider <asn@samba.org>
Wed, 21 Oct 2020 05:43:08 +0000 (07:43 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 22 Oct 2020 16:05:30 +0000 (16:05 +0000)
This fixes `make test` in a release tarball.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14542

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
python/samba/netcmd/domain.py

index 000688f4e7a76ea69ede0eb72aad693dd0d7784e..5f08ddf6007bd860bcbe4db6b004e7f0d9bb6736 100644 (file)
@@ -445,7 +445,7 @@ class cmd_domain_provision(Command):
 
         if targetdir is not None:
             if not os.path.isdir(targetdir):
-                os.mkdir(targetdir)
+                os.makedirs(targetdir)
 
         eadb = True