Changeset 11534 in genesis for tools/gformat.py


Ignore:
Timestamp:
Oct 9, 2012, 9:03:29 PM (12 years ago)
Author:
rick
Message:

Do not use function which are not defined yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r11533 r11534  
    123123  normal_proxies = []
    124124  nameservers_cache = []
    125 
    126 def fill_cache():
    127  ''' Poor man re-loading of few cache items (the slow ones) '''
    128  for host in get_hostlist():
    129    datadumps[host] = get_yaml(host)
    130 
    131 
    132 def reload_cache():
    133   clear_cache()
    134   fill_cache()
    135  
    136  
    137125
    138126NO_DHCP = 0
     
    14791467  print
    14801468  print output
     1469
     1470
     1471def fill_cache():
     1472 ''' Poor man re-loading of few cache items (the slow ones) '''
     1473 for host in get_hostlist():
     1474   datadumps[host] = get_yaml(host)
     1475
     1476
     1477def reload_cache():
     1478  clear_cache()
     1479  fill_cache()
     1480 
    14811481
    14821482
Note: See TracChangeset for help on using the changeset viewer.