Changeset 10937 in genesis


Ignore:
Timestamp:
May 20, 2012, 1:21:02 AM (13 years ago)
Author:
rick
Message:

Only the known up please.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10936 r10937  
    831831  for host in get_hybridlist():
    832832    hostdump = get_yaml(host)
    833     if hostdump['service_proxy_ileiden'] or hostdump['service_proxy_normal']:
     833    if hostdump['status'] == 'up' and (hostdump['service_proxy_ileiden'] or hostdump['service_proxy_normal']):
    834834      nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname']))
    835835  for host in get_proxylist():
    836836    hostdump = get_yaml(host)
    837     nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname']))
     837    if hostdump['status'] == 'up':
     838      nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname']))
    838839
    839840  return nameservers_cache
Note: See TracChangeset for help on using the changeset viewer.