File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 6767 ' upgrade-replica-compilers' ,
6868 ' finalize' ]] $begin_at_step = undef ,
6969) {
70+ out::message(' # Validating inputs' )
71+
7072 # Ensure input valid for a supported architecture
7173 $arch = peadm::assert_supported_architecture(
7274 $primary_host ,
9799 $replica_postgresql_target ,
98100 ])
99101
102+ # Validate the RBAC token used to upgrade compilers if compilers are present
103+ if $compiler_targets and $compiler_targets .size > 0 {
104+ run_task(' peadm::validate_rbac_token' , $primary_target , token_file => $token_file )
105+ }
106+
100107 out::message(' # Gathering information' )
101108
102109 # lint:ignore:strict_indent
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def execute!
2929 body = JSON . parse ( resp . body )
3030 case resp . code
3131 when '401' , '403'
32- puts "#{ resp . code } #{ body [ 'kind' ] } : Check your API token at #{ token_file } . " +
32+ puts "#{ resp . code } #{ body [ 'kind' ] } : \n Check your API token at #{ token_file } . " +
3333 "An alternate token file can be specified using the token_file param. \n \n " +
3434 "See https://www.puppet.com/docs/pe/latest/rbac_token_auth_intro for more details. \n "
3535 else
You can’t perform that action at this time.
0 commit comments