Skip to content

Commit

Permalink
Merge pull request #266 from dgoetz/fix/allow_patch_for_membership
Browse files Browse the repository at this point in the history
  • Loading branch information
root-expert authored Nov 30, 2021
2 parents 9c3f379 + 3f76b39 commit 92e9097
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet/provider/grafana.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def send_request(operation = 'GET', path = '', data = nil, search_path = {})
request = Net::HTTP::Get.new(uri.request_uri)
when 'DELETE'
request = Net::HTTP::Delete.new(uri.request_uri)
when 'PATCH'
request = Net::HTTP::Patch.new(uri.request_uri)
request.body = data.to_json
else
raise Puppet::Error, format('Unsupported HTTP operation %s', operation)
end
Expand Down

0 comments on commit 92e9097

Please sign in to comment.