def boto_fix_security_token_in_profile(conn, profile_name):
 profile = ('profile ' + profile_name)
 if boto.config.has_option(profile, 'aws_security_token'):
  conn.provider.set_security_token(boto.config.get(profile, 'aws_security_token'))
 return conn

def boto_fix_security_token_in_profile ( conn , profile_name ) : profile = ( 'profile ' + profile_name ) if boto . config . has_option ( profile , 'aws_security_token' ) : conn . provider . set_security_token ( boto . config . get ( profile , 'aws_security_token' ) ) return conn
monkey patch for boto issue boto/boto#2100 .