From 21be7021703897094e4da55bf2d6ee234d900c05 Mon Sep 17 00:00:00 2001 From: Chao Date: Wed, 29 May 2013 19:10:58 -0300 Subject: [PATCH] allow you to disable dashboard authentication allow you to disable dashboard authentication by providing empty string '' for username and password --- lib/puppet/provider/sensu_dashboard_config/json.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/puppet/provider/sensu_dashboard_config/json.rb b/lib/puppet/provider/sensu_dashboard_config/json.rb index 5da5ad1bcf..bbb57bc5ec 100644 --- a/lib/puppet/provider/sensu_dashboard_config/json.rb +++ b/lib/puppet/provider/sensu_dashboard_config/json.rb @@ -56,6 +56,7 @@ def user def user=(value) conf['dashboard']['user'] = value + conf['dashboard'].delete('user') if ''==value end def password @@ -64,5 +65,7 @@ def password def password=(value) conf['dashboard']['password'] = value + conf['dashboard'].delete('password') if ''==value + end end