[smokeping-users] Re: replacing vars in the config
Niko Tyni
ntyni+smokeping-users at mappi.helsinki.fi
Fri Jul 29 12:04:18 MEST 2005
On Thu, Jul 28, 2005 at 06:23:07PM -0400, Warrick FitzGerald wrote:
> Did anyone have any ideas on this? I've read all the Config::Grammar
> docs and have not found a solution.
>
> In summary I dont want to hard code the my URL's on each of the probes
> so I though I could use @define to do a search on a specific string.
>
> The problem is that something like this @define ReplaceMe www.Domain.com
>
> Get's replaced with www\.Domain\.com when I use the work ReplaceMe in my
> config.
It's kind of a bug in Config::Grammar - it's doing a quotemeta() call
before the replace.
I'll try to find the best way to fix it for the next release.
Meanwhile, I suppose you could just strip the quotemeta() call (around
line 590 in lib/Config/Grammar.pm).
Cheers,
--
Niko
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list