On Mon, 2008-07-21 at 14:54 +0200, Carsten Clasohm wrote:
Attached is a patch for
/usr/lib/python2.4/site-packages/cobbler/services.py, which allows
findks to match based on the MAC address.
I've applied this with a slight change -- namely that it will not do IP
detection if it clears MAC detection, if both are in cobbler we do not
want it to fail, but instead match on first available.
Looking at my code here, at some point, we can update this to use the
cobbler "find" API calls versus iterating through them here, but it's
not really going to be any faster so this is ok.
--Michael