summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/scripting/bin/samba_upgradedns12
1 files changed, 8 insertions, 4 deletions
diff --git a/source4/scripting/bin/samba_upgradedns b/source4/scripting/bin/samba_upgradedns
index 1a42e0c8ce..86172a762d 100755
--- a/source4/scripting/bin/samba_upgradedns
+++ b/source4/scripting/bin/samba_upgradedns
@@ -379,12 +379,16 @@ if __name__ == '__main__':
msg = msgs[0]
master_nclist = []
- for nc in msg["msDS-hasMasterNCs"]:
- master_nclist.append(nc)
+ ncs = msg.get("msDS-hasMasterNCs")
+ if ncs:
+ for nc in ncs:
+ master_nclist.append(nc)
partial_nclist = []
- for nc in msg["hasPartialReplicaNCs"]:
- partial_nclist.append(nc)
+ ncs = msg.get("hasPartialReplicaNCs")
+ if ncs:
+ for nc in ncs:
+ partial_nclist.append(nc)
modified = False
for nc in dns_nclist: