Signed-off-by: Stephen Gran <steve@lobefin.net>
try:
F = open(File + ".tmp", "w")
try:
F = open(File + ".tmp", "w")
- global HostAttrs
-
- for x in HostAttrs:
- if x[1].has_key("hostname") == 0 or \
- x[1].has_key("architecture") == 0 or\
- x[1].has_key("sshRSAHostKey") == 0:
- continue
-
- if IsDebianHost.match(GetAttr(x, "hostname")) is not None:
- continue
-
- DNSInfo = ExtractDNSInfo(x)
- start = True
- for Line in DNSInfo:
- if start == True:
- Line = "%s.\t%s" % (GetAttr(x, "hostname"), Line)
- start = False
- else:
- Line = "\t\t\t%s" % (Line)
- F.write(Line + "\n")
+# global HostAttrs
+#
+# for x in HostAttrs:
+# if x[1].has_key("hostname") == 0 or \
+# x[1].has_key("architecture") == 0 or\
+# x[1].has_key("sshRSAHostKey") == 0:
+# continue
+#
+# if IsDebianHost.match(GetAttr(x, "hostname")) is not None:
+# continue
+#
+# DNSInfo = ExtractDNSInfo(x)
+# start = True
+# for Line in DNSInfo:
+# if start == True:
+# Line = "%s.\t%s" % (GetAttr(x, "hostname"), Line)
+# start = False
+# else:
+# Line = "\t\t\t%s" % (Line)
+# F.write(Line + "\n")
# Fetch all the users
global PasswdAttrs
# Fetch all the users
global PasswdAttrs
-if [ -e /var/lib/misc/thishost/dns-zone ]; then
- if cmp /var/lib/misc/thishost/dns-zone $tempfile2; then
- rndc_reload=1
- fi
-fi
+#if [ -e /var/lib/misc/thishost/dns-zone ]; then
+# if cmp /var/lib/misc/thishost/dns-zone $tempfile2; then
+# rndc_reload=1
+# fi
+#fi
# FIXME:
# this needs to rebuild the zone file with a new serial so it can replicate.
# FIXME:
# this needs to rebuild the zone file with a new serial so it can replicate.