samba_dnsupdate: make rodc_dns_update() more robust against timing problems
[samba.git] / source4 / scripting / bin / samba_upgradeprovision
index 6de9d957194dbe73a4111ffc14d0c770628670df..8433b4ddd9c6edf208b34a6c6918e307201046cf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # vim: expandtab
 #
 # Copyright (C) Matthieu Patou <mat@matws.net> 2009 - 2010
@@ -1387,7 +1387,7 @@ def backup_provision(samdb, paths, dir, only_db):
                        scope=ldb.SCOPE_BASE,
                        attrs=["backendStore"])
     if "backendStore" in res[0]:
-        backend_store = res[0]["backendStore"][0]
+        backend_store = str(res[0]["backendStore"][0])
 
 
     if paths.sysvol and not only_db: