[wpkg-users] Strange behaviour when selecting hosts
Lukasz Zalewski
lukas at dcs.qmul.ac.uk
Thu Aug 20 17:25:24 CEST 2009
Lukasz Zalewski wrote:
> Hi!
> I have the following hosts.xml file:
>
> <host name="ityyy|itzzz" profile-id="allaccess" />
>
> <host name="it14[789]" profile-id="ITLtop" />
> <host name="it1[56789][123456789]" profile-id="ITLtop" />
> <host name="it2[123456789][123456789]" profile-id="ITLtop" />
>
> <host name="it07[89]" profile-id="ITLmiddle" />
> <host name="it1[123][123456789]" profile-id="ITLmiddle" />
> <host name="it14[123456]" profile-id="ITLmiddle" />
>
> <host name="138.37.94.+" profile-id="student" />
>
> when the script is run on ityyy student profile is always selected
> (match is found on 138.37.94.+). As the documentation states that the
> hosts are processed top to bottom (with the exeptions of non reg
> expressions) the allaccess would be found and used first.
>
> However if i use the single host syntax for all access
> <host name="ityyy" profile-id="allaccess" />
>
> allaccess is selected correctly.
>
> I'm using version 1.1.1
>
> Many Thanks
>
> Luk
Little follow up,
from the log file I get the following
Hosts file contains 9
hosts:|.+|ityyy\|itzzz|it14[789]|it1[56789][123456789]|it2[123456789][123456789]|it07[89]|it1[123][123456789]|it14[123456]|138.
37.94.+
it seems like there is escape character \ between or symbol separating
ityyy and itzzz. Would that be the cause of the problem or is this just
for display purposes?
Luk
More information about the wpkg-users
mailing list