summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/upgradeprovision10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index 81cf3388df..9298c02672 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -712,10 +712,12 @@ def update_machine_account_password(newpaths,paths,creds,session,names):
machinepass=machinepass,
key_version_number=kvno,
secure_channel_type=secrets_msg[0]["secureChannelType"])
- sam_ldb.transaction_prepare_commit()
- secrets_ldb.transaction_prepare_commit()
- sam_ldb.transaction_commit()
- secrets_ldb.transaction_commit()
+ sam_ldb.transaction_prepare_commit()
+ secrets_ldb.transaction_prepare_commit()
+ sam_ldb.transaction_commit()
+ secrets_ldb.transaction_commit()
+ else:
+ secrets_ldb.transaction_cancel()
# From here start the big steps of the program
# First get files paths