Changeset 8342 in genesis


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

Legend:

Unmodified
Added
Removed
  • nodes/genesis-to-yaml.pl

    r8300 r8342  
    2727     $output = $file;
    2828     $output =~ s/conf$/yaml/;
    29      print `perl $ENV{_} $file > $output`;
     29     print "# Processing $file\n";
     30     `./genesis-to-yaml.pl $file > $output`;
    3031  }
    3132  exit 0;
  • 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.