Changeset 8342 in genesis for nodes/get-network-status.py


Ignore:
Timestamp:
Aug 13, 2010, 8:00:18 PM (14 years ago)
Author:
rick
Message:
  • genesis-to-yaml.pl wildcard hack
  • merge does not need to have initial file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nodes/get-network-status.py

    r8341 r8342  
    310310def do_merge(files):
    311311  """ Merge all external statuses in our own nodestatus, using optimistic approch """
    312   stream = file(nodemap_status_file,'r')
    313   status = yaml.load(stream)
     312  try:
     313    stream = file(nodemap_status_file,'r')
     314    status = yaml.load(stream)
     315  except IOError, e:
     316    # Data store format used for nodemap generation
     317    status = { 'node' : {}, 'link' : {}}
     318
    314319  for cfile in files:
    315320    try:
Note: See TracChangeset for help on using the changeset viewer.