Skip to content

Commit

Permalink
Merge pull request #193 from puppetlabs/2.x
Browse files Browse the repository at this point in the history
Fix upgrade bug for token files with newlines
  • Loading branch information
reidmv authored Jul 23, 2021
2 parents a427382 + 3dca567 commit 1f33dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/puppet_infra_upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def request_object(nodes:, token_file:)

request = Net::HTTP::Post.new(inventory_uri.request_uri)
request['Content-Type'] = 'application/json'
request['X-Authentication'] = token
request['X-Authentication'] = token.chomp
request.body = body

request
Expand Down

0 comments on commit 1f33dd2

Please sign in to comment.