On Oct 14, 2008, at 12:29 PM, rembry wrote:
Well, mucking with the ZenPack code is a bit more than I want to
tackle this week. But I wonder if it would be doable to scan the
string in cmd.command to look for the presence of the password
string and do a substitution that masks it out before passing it to
the message? I can visualize doing that in Perl, but my Python
skills are mui poquito.
This could be a good option too. You'd replace the following line that
we already mentioned:
msg = "Command timed out on device %s: %s" % (dc.device, cmd.command)
With these two:
sanitizedCmd = cmd.command.replace('MYPASSWORD', '***')
msg = "Command timed out on device %s: %s" % (dc.device, sanitizedCmd)
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users