Ignore:
Timestamp:
Aug 2, 2008, 8:28:18 PM (16 years ago)
Author:
y_z
Message:
  • use invirt.config to get hostnames
  • refactoring: extracted bcast() function into invirt.remote package
  • fixed os.rename import bug
  • using correct default paths in invirt-getconf
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py

    r807 r816  
    11import json
    22from invirt.common import *
     3from os import rename
    34from os.path import getmtime
    45
     
    7576                        lambda f: f.write(json.write(ns.cfg)))
    7677                except: pass # silent failure
    77                 else: os.rename(cache_path + '.tmp', cache_path)
     78                else: rename(cache_path + '.tmp', cache_path)
    7879        except IOError:
    7980            ns.cfg = with_closing(file(src_path)) (
Note: See TracChangeset for help on using the changeset viewer.