Changeset 792 for trunk/packages


Ignore:
Timestamp:
Jul 30, 2008, 9:39:00 PM (16 years ago)
Author:
price
Message:

fix bug in late-import of yaml in invirt.config

Location:
trunk/packages/sipb-xen-base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-base/debian/changelog

    r791 r792  
     1sipb-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
    19sipb-xen-base (8.11) unstable; urgency=low
    210
  • trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py

    r784 r792  
    55default_src_path   = '/etc/invirt/master.yaml'
    66default_cache_path = '/var/lib/invirt/cache.json'
    7 
    8 try:    default_loader = yaml.CSafeLoader
    9 except: default_loader = yaml.SafeLoader
    107
    118def load(src_path = default_src_path,
     
    3835        def cfg():
    3936            import yaml
     37            try:    default_loader = yaml.CSafeLoader
     38            except: default_loader = yaml.SafeLoader
    4039            cfg = with_closing(file(src_path))(lambda f: yaml.load(f, default_loader))
    4140            try: with_closing(file(cache_path, 'w'))(lambda f: f.write(json.write(cfg)))
Note: See TracChangeset for help on using the changeset viewer.