[icinga-checkins] icinga.org: chef-icinga2/master: Fix missing parent attribute for icinga2_envzone

git at icinga.org git at icinga.org
Sun Nov 13 07:53:40 CET 2016


Module: chef-icinga2
Branch: master
Commit: 90da95cae39ce1479a657f3e390d02c6e437fc4e
URL:    https://git.icinga.org/?p=chef-icinga2.git;a=commit;h=90da95cae39ce1479a657f3e390d02c6e437fc4e

Author: Ankit Rusia <sowhatim at hotmail.com>
Date:   Wed Oct 26 22:12:41 2016 +0530

Fix missing parent attribute for icinga2_envzone 

Previously parent variable was missing from template  in icinga2_envzone and thus does not show up in template.

---

 libraries/resource_envzone.rb |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libraries/resource_envzone.rb b/libraries/resource_envzone.rb
index f2662ae..cc2ac1a 100644
--- a/libraries/resource_envzone.rb
+++ b/libraries/resource_envzone.rb
@@ -106,7 +106,8 @@ class Chef
             :environment => new_resource.environment,
             :zones => new_resource.zones,
             :zone => new_resource.zone,
-            :log_duration => new_resource.log_duration
+            :log_duration => new_resource.log_duration,
+            :parent => new_resource.parent
           )
           notifies :reload, 'service[icinga2]'
         end



More information about the icinga-checkins mailing list