Skip to content

Commit 43bd9ab

Browse files
Update tasks/validate_rbac_token.rb
Co-authored-by: Neil Anderson <[email protected]>
1 parent c13c900 commit 43bd9ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks/validate_rbac_token.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ def execute!
2929
body = JSON.parse(resp.body)
3030
case resp.code
3131
when '401', '403'
32-
puts "#{resp.code} #{body['kind']}: \nCheck your API token at #{token_file}. \
33-
An alternate token file can be specified using the token_file param. \n\n\
34-
See https://www.puppet.com/docs/pe/latest/rbac_token_auth_intro for more details. \n"
32+
puts "#{resp.code} #{body['kind']}: " \
33+
"Check your API token at #{token_file}.\n" \
34+
"Please refresh your token or provide an alternate file.\n" \
35+
"See https://www.puppet.com/docs/pe/latest/rbac_token_auth_intro for more details.\n"
3536
else
3637
puts "Error validating token: #{resp.code} #{body['kind']}"
3738
puts body['msg']

0 commit comments

Comments
 (0)