From 1ff191ed3a2dc2ccde61217c081c6aeec8926708 Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Wed, 27 Sep 2017 12:54:06 +0200 Subject: [PATCH] fix #352 update documentation about += operator --- README.md | 4 ++++ lib/puppet_x/icinga2/utils.rb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index c5e2124a1..6f912af09 100644 --- a/README.md +++ b/README.md @@ -460,6 +460,10 @@ Assignments other than simple attribution are not currently possible either, e.g ``` vars += config ``` +but you can use the following instead: +``` + vars = vars + config +``` ### Apply Rules diff --git a/lib/puppet_x/icinga2/utils.rb b/lib/puppet_x/icinga2/utils.rb index f160b6bf2..4ba1d2c90 100644 --- a/lib/puppet_x/icinga2/utils.rb +++ b/lib/puppet_x/icinga2/utils.rb @@ -71,6 +71,10 @@ # # vars += config # +# but you can use the following instead: +# +# vars = vars + config +# # require 'puppet'