Changeset 792
- Timestamp:
 - Jul 30, 2008, 9:39:00 PM (17 years ago)
 - Location:
 - trunk/packages/sipb-xen-base
 - Files:
 - 
          
- 2 edited
 
- 
          debian/changelog (modified) (1 diff)
 - 
          files/usr/share/python-support/sipb-xen-base/invirt/config.py (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
trunk/packages/sipb-xen-base/debian/changelog
r791 r792 1 sipb-xen-base (8.12) unstable; urgency=low 2 3 * add --ls and some convenience features to invirt-getconf: 4 formatting composite nodes as yaml, allowing the root 5 * fix bug in late-import of yaml in invirt.config 6 7 -- Greg Price <price@mit.edu> Wed, 30 Jul 2008 21:36:17 -0400 8 1 9 sipb-xen-base (8.11) unstable; urgency=low 2 10  - 
        
trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py
r784 r792 5 5 default_src_path = '/etc/invirt/master.yaml' 6 6 default_cache_path = '/var/lib/invirt/cache.json' 7 8 try: default_loader = yaml.CSafeLoader9 except: default_loader = yaml.SafeLoader10 7 11 8 def load(src_path = default_src_path, … … 38 35 def cfg(): 39 36 import yaml 37 try: default_loader = yaml.CSafeLoader 38 except: default_loader = yaml.SafeLoader 40 39 cfg = with_closing(file(src_path))(lambda f: yaml.load(f, default_loader)) 41 40 try: with_closing(file(cache_path, 'w'))(lambda f: f.write(json.write(cfg)))  
Note: See TracChangeset
          for help on using the changeset viewer.
      