Last change
on this file since 733 was
733,
checked in by y_z, 16 years ago
|
simple initial version of invirt-getconf simply reads & navigates yaml; fixed permissions
|
File size:
304 bytes
|
Line | |
---|
1 | from __future__ import with_statement |
---|
2 | import yaml |
---|
3 | |
---|
4 | default_path = '/etc/invirt/master.yaml' |
---|
5 | |
---|
6 | try: default_loader = yaml.CSafeLoader |
---|
7 | except: default_loader = yaml.SafeLoader |
---|
8 | |
---|
9 | def load( path = default_path ): |
---|
10 | with file( path ) as f: |
---|
11 | return yaml.load( f, default_loader ) |
---|
12 | |
---|
13 | # vim:et:sw=4:ts=4 |
---|
Note: See
TracBrowser
for help on using the repository browser.