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