@@ -540,7 +540,7 @@ def bless(region, nocache, showgui, hostname, bless_config):
540
540
payload = {
541
541
'bastion_user' : username ,
542
542
'bastion_user_ip' : my_ip ,
543
- 'remote_username ' : username ,
543
+ 'remote_usernames ' : username ,
544
544
'bastion_ips' : bless_config .get_aws_config ()['bastion_ips' ],
545
545
'command' : '*' ,
546
546
'public_key_to_sign' : public_key ,
@@ -549,7 +549,7 @@ def bless(region, nocache, showgui, hostname, bless_config):
549
549
550
550
logging .debug ("Got back cert: {}" .format (cert ))
551
551
552
- if cert [:
30 ]
!= '" [email protected] ' :
552
+ if cert [:
29 ]
!= '[email protected] ' :
553
553
error_msg = json .loads (cert )
554
554
if ('errorType' in error_msg
555
555
and error_msg ['errorType' ] == 'KMSAuthValidationError'
@@ -577,7 +577,7 @@ def bless(region, nocache, showgui, hostname, bless_config):
577
577
578
578
ssh_agent_remove_bless (identity_file )
579
579
with open (cert_file , 'w' ) as cert_file :
580
- cert_file .write (cert [ 1 : len ( cert ) - 3 ] )
580
+ cert_file .write (cert )
581
581
ssh_agent_add_bless (identity_file )
582
582
583
583
bless_cache .set ('certip' , my_ip )
0 commit comments