From 43bd9abe064e759f28961fdabc63bb8532e4ee1f Mon Sep 17 00:00:00 2001 From: Jacob Buchanan Date: Mon, 14 Oct 2024 12:56:02 +0100 Subject: [PATCH] Update tasks/validate_rbac_token.rb Co-authored-by: Neil Anderson --- tasks/validate_rbac_token.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/validate_rbac_token.rb b/tasks/validate_rbac_token.rb index 153fb878..eed23384 100755 --- a/tasks/validate_rbac_token.rb +++ b/tasks/validate_rbac_token.rb @@ -29,9 +29,10 @@ def execute! body = JSON.parse(resp.body) case resp.code when '401', '403' - puts "#{resp.code} #{body['kind']}: \nCheck your API token at #{token_file}. \ - An alternate token file can be specified using the token_file param. \n\n\ - 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" \ + "See https://www.puppet.com/docs/pe/latest/rbac_token_auth_intro for more details.\n" else puts "Error validating token: #{resp.code} #{body['kind']}" puts body['msg']