Changeset 10936 in genesis
- Timestamp:
- May 20, 2012, 1:16:06 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10935 r10936 824 824 825 825 826 nameservers_cache = {}826 nameservers_cache = [] 827 827 def get_nameservers(): 828 828 if nameservers_cache: 829 829 return nameservers_cache 830 830 831 for host in get_proxylist():832 hostdump = get_yaml(host)833 nameservers_cache[hostdump['masterip']] = hostdump['autogen_realname']834 831 for host in get_hybridlist(): 835 832 hostdump = get_yaml(host) 836 833 if hostdump['service_proxy_ileiden'] or hostdump['service_proxy_normal']: 837 nameservers_cache[hostdump['masterip']] = hostdump['autogen_realname'] 834 nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname'])) 835 for host in get_proxylist(): 836 hostdump = get_yaml(host) 837 nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname'])) 838 838 839 839 return nameservers_cache … … 847 847 848 848 849 for masterip,realname in get_nameservers() .iteritems():849 for masterip,realname in get_nameservers(): 850 850 datadump['autogen_edge_nameservers'] += "nameserver %-15s # %s\n" % (masterip, realname) 851 851
Note:
See TracChangeset
for help on using the changeset viewer.