Changeset 10980 in genesis for tools/gformat.py
- Timestamp:
- May 22, 2012, 9:06:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10938 r10980 825 825 826 826 nameservers_cache = [] 827 def get_nameservers( ):827 def get_nameservers(max_servers=None): 828 828 if nameservers_cache: 829 return nameservers_cache 829 return nameservers_cache[0:max_servers] 830 830 831 831 for host in get_hybridlist(): … … 838 838 nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname'])) 839 839 840 return nameservers_cache 840 return nameservers_cache[0:max_servers] 841 841 842 842 … … 1300 1300 dns_masters = ['siteview.wirelessleiden.nl', 'ns1.vanderzwet.net'] 1301 1301 else: 1302 dns_masters = ['sunny.wleiden.net'] + ["%s.wleiden.net" % x[1] for x in get_nameservers( )]1302 dns_masters = ['sunny.wleiden.net'] + ["%s.wleiden.net" % x[1] for x in get_nameservers(max_servers=3)] 1303 1303 1304 1304 details['master'] = dns_masters[0]
Note:
See TracChangeset
for help on using the changeset viewer.