Try:

evt.message = "... association to %s lost from %s" 
%(getattr(evt,'alarm-peer-not-responding-arg-1',''), 
getattr(evt,'alarm-peer-not-responding-arg-2,''))

The second argument in getattr is your variable name surrounded by single 
quotes. The third argument is two single quotes - NOT a double quote. The thrid 
argument is optional; however, it provides a default value if the attribute 
does not exist.

If this works, please mark this issue [SOLVED].




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

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

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



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

Reply via email to