Skip to content

Commit 6278274

Browse files
committed
(BOLT-706) Strip newlines from token when reading
1 parent 56a9911 commit 6278274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/orchestrator_client/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def overrides_only
7575
end
7676

7777
def load_token
78-
@config['token'] || File.open(config['token-file']) { |f| f.read }
78+
@config['token'] || File.open(config['token-file']) { |f| f.read.strip }
7979
end
8080

8181
def token

0 commit comments

Comments
 (0)