[augeas-devel] Some ideas about how to use Augeas with IPA

David Lutterkort dlutter at redhat.com
Wed May 14 16:48:07 UTC 2008


On Wed, 2008-05-14 at 14:27 +0200, Dominique Dumont wrote:
> >From a user's point of view, wouldn't it be better to get the error
> message during the "set" command instead of the "save" command ?

Unfortunately, that's not possible in general, since you might have to
perform multiple "set" commands to get the tree into a syntactically
correct state.

As an example, an entry in /etc/hosts has to have, at a minumum, an
ipaddr and a canonical name; after setting the ipaddr for a new entry,
the tree is not syntactically correct. And because 'syntactically
correct' can, in general, depend on things far away in the tree, it's
also not easy to say what other properties need to hold after each
"set".

David





More information about the augeas-devel mailing list