From 4d84c482111c3732cb21d0f89e2245bcd3cee527 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Thu, 2 Jul 2015 15:38:46 -0700 Subject: [PATCH] Update template to use instance variables Using methods to access in-scope variables from puppet templates has been deprecated since puppet 3.2.0[1] and causes warnings to be emitted in logs. In puppet 4 this functionality was removed entirely. This patch updates the accessbot.confg template to use instance variables as recommended in the puppet documentation[2]. [1] https://projects.puppetlabs.com/issues/19058 [2] https://docs.puppetlabs.com/guides/templating.html#referencing-variables Change-Id: I7af52e32322333879eef946443620e09a726dd57 --- templates/accessbot.config.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/accessbot.config.erb b/templates/accessbot.config.erb index a11ea48..032f67b 100644 --- a/templates/accessbot.config.erb +++ b/templates/accessbot.config.erb @@ -1,5 +1,5 @@ [ircbot] -nick=<%= nick %> -pass=<%= password %> -server=<%= server %> +nick=<%= @nick %> +pass=<%= @password %> +server=<%= @server %> port=6697