Plugin: aj.plugins.augeas.api¶
-
class
aj.plugins.augeas.api.
Augeas
(modules=[], loadpath=None)[source]¶ A smarter and faster wrapper around
augeas.Augeas
.augeasFor faster startup, no modules and lenses are preloaded:
aug = Augeas(modules=[{ 'name': 'Interfaces', # module name 'lens': 'Interfaces.lns', # lens name 'incl': [ # included files list self.path, self.path + '.d/*', ] }])
Don’t forget to call
load()
afterwards.-
raise_error
()[source]¶ Extracts error information from Augeas tree and raises
AugeasError
-