Skip to content

Commit e3ae941

Browse files
committed
fix(rbac_token): correct typo in Net::HTTP::Post initialization
Corrected the typo in the initialization of Net::HTTP::Post for creating the RBAC token request. This ensures the correct HTTP method is used for the request.
1 parent 07463ed commit e3ae941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/rbac_token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
https.key = OpenSSL::PKey::RSA.new(File.read(Puppet.settings[:hostprivkey]))
2929
https.verify_mode = OpenSSL::SSL::VERIFY_PEER
3030
https.ca_file = Puppet.settings[:localcacert]
31-
request = Net::https:Post.new('/rbac-api/v1/auth/token')
31+
request = Net::HTTP::Post.new('/rbac-api/v1/auth/token')
3232
request['Content-Type'] = 'application/json'
3333
request.body = body
3434

0 commit comments

Comments
 (0)