provision: Move default handler for site=None down into dc_join object creation
[sfrench/samba-autobuild/.git] / python / samba / join.py
index 3e70db08d2ad826deaa92b2e89fb214cbf5f72f5..681275cd72ddd102b246b7c801387b4b7abe65b5 100644 (file)
@@ -53,6 +53,9 @@ class dc_join(object):
                  netbios_name=None, targetdir=None, domain=None,
                  machinepass=None, use_ntvfs=False, dns_backend=None,
                  promote_existing=False, clone_only=False):
+        if site is None:
+            site = "Default-First-Site-Name"
+
         ctx.clone_only=clone_only
 
         ctx.logger = logger