On 04/28/2016 10:24 AM, Lars Marowsky-Bree wrote: > On 2016-04-27T12:10:10, Klaus Wenninger <kwenn...@redhat.com> wrote: > >>> Having things in ARGV[] is always risky due to them being exposed more >>> easily via ps. Environment variables or stdin appear better. >> What made you assume the recipient is being passed as argument? >> >> The environment variable CRM_alert_recipient is being used to pass it. > > Ah, excellent! But what made me think that this would be passed as > arguments is that your announcement said: "Each alert may have any > number of recipients configured. These values will simply be passed to > the script as *arguments*." ;-)
Yes, that was my mistake in the original announcement. :-/ An early design had the script called once with all recipients as arguments, but in the implementation we went with the script being called once per recipient (and using only the environment variable). _______________________________________________ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org