diff --git a/lib/puppet/provider/grafana.rb b/lib/puppet/provider/grafana.rb index 2229f852b..0ebb0ad99 100644 --- a/lib/puppet/provider/grafana.rb +++ b/lib/puppet/provider/grafana.rb @@ -68,7 +68,7 @@ def send_request(operation = 'GET', path = '', data = nil, search_path = {}) end request.content_type = 'application/json' - if resource[:grafana_user] && resource[:grafana_user] + if resource[:grafana_user] && resource[:grafana_password] request.basic_auth resource[:grafana_user], resource[:grafana_password] end