From: Jason H. <jh...@ap...> - 2010-09-14 00:22:40
|
Etch will error out. I thought I'd documented this but it seems I did not, sorry about that.[1] Anyway, you have to give etch consistent instructions of what to do. I.e. after filtering all of the sources have to agree. Typically in a case like what you are describing you would just have a single script (instead of myscript1, myscript2, etc.) and put appropriate logic in the script to handle the combinations of groups as appropriate. I.e. if @groups.include?('group1') @contents << 'blah' elsif @groups.include?('group2') @contents << 'foo' end Jason [1] It is now documented in https://sourceforge.net/apps/trac/etch/wiki/ConfigurationManual On Sep 13, 2010, at 3:31 PM, Darren Dao wrote: > Supposed my node belongs to all three groups (group1, group2, and group3). What would happens if I have the following attribute filtering in my config.xml? > > Will myscript1.script be picked? or myscript3.script? or all 3 will get picked? If all 3 get picked, does the resulting content be the combined result from the 3 script? or will it just be the result of the last script that is run, which is myscript3 in this case. > > <config> > <file> > <warning_file/> > <!-- > By default files will be owned by root, > but you can change that. If this user or > group doesn't exist UID 0 and GID 0 will > be used as a faillback. > <owner>demouser</owner> > <group>demogroup</group> > --> > <perms>400</perms> > <source> > <script group="group1">myscript1.script</script> > <script group="group2">myscript2.script</script> > <script group="group3">myscript3.script</script> > </source> > </file> > </config> |