Try this:

if evt.DeviceGroups.find('Laptops') != -1:
    evt.severity = 3 

Function 'find' looks for substring 'Laptops' in evt.DeviceGroups string and 
returns the lowest index where substring is found. 'Find' returns -1 if 
substring is not found.

Wojtek




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=34844#34844

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to