[wpkg-users] hostname matching
Stefan Pendl
stefan.pendl.71 at gmail.com
Thu Feb 18 13:12:11 CET 2021
Am 17.02.2021 um 20:18 schrieb Gerd Ott:
> Hi,
> Every now and then i have an issue with hosts installing software from a
> wrong profile.
>
> I found out that if you have a configuration like the following in the
> hosts.xml:
>
> <host hostname="bert" profile-id="win10_base" />
> <host hostname="liberti" profile-id="win10_advanced" />
>
> then host liberti will install all the packages of profile win10_base,
> because it finds "bert" before finding "liberti"
>
> Is this a misconfiguration or a bug?
>
It is a problem of your configuration.
WPKG uses regular expressions for matching.
If you need an exact match use "^bert$" instead of "bert".
For further information check
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
or the MSDN site.
Hope this helps.
--
*Stefan P.*
Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
More information about the wpkg-users
mailing list