Skip to content

Commit 1f33dd2

Browse files
authored
Merge pull request #193 from puppetlabs/2.x
Fix upgrade bug for token files with newlines
2 parents a427382 + 3dca567 commit 1f33dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tasks/puppet_infra_upgrade.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def request_object(nodes:, token_file:)
5151

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

5757
request

0 commit comments

Comments
 (0)