I did the same and can testify that it worked for me.

Nicholas Weaver
[EMAIL PROTECTED]
m: 817-914-6166

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of elhannah
Sent: Tuesday, October 30, 2007 3:34 PM
To: [email protected]
Subject: [zenoss-users] use sed to workaround "time" variable bug

If you're getting the error:

Type: RuntimeError
Value: maximum recursion depth exceeded in cmp 

and you're working with a data point with a name "time", you're likely
working up against what appears to be a bug.  I found a thread that
touches on this, but there was only a glancing reference to a good
workaround until a fix is issued.

To workaround the issue, use "sed" in the command line.  The error is
generated because you're working with a variable "time", which is
defined by output from a command, e.g.,:

RESULTS.......|time=0.999;;; etc.

Since you can't change the name of the variable directly, you have to
modify the command by piping its results to "sed"... In the command
template definition, add to the end of the command:
 | sed "s/time=/xtime=/"

and now, you have to reference your time variable with name "xtime".  A
little inconvenient, but it gets you where you need to be.

Good luck.




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

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

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



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

Reply via email to