We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13c900 commit 43bd9abCopy full SHA for 43bd9ab
tasks/validate_rbac_token.rb
@@ -29,9 +29,10 @@ def execute!
29
body = JSON.parse(resp.body)
30
case resp.code
31
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"
+ puts "#{resp.code} #{body['kind']}: " \
+ "Check your API token at #{token_file}.\n" \
+ "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"
36
else
37
puts "Error validating token: #{resp.code} #{body['kind']}"
38
puts body['msg']
0 commit comments