Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jan 11, 2024
1 parent b04d960 commit f66992b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/credentials_provider_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ static struct aws_credentials_provider *s_credentials_provider_new_profile_inter
goto on_finished;
}
if (element != NULL) {
/* profiles can contain self reference but no circular chain */
/* profile can contain a self-reference with static credentials but no circular chain. */
if (!profile_contains_static_cred || aws_hash_table_get_entry_count(source_profiles_table) > 1) {
AWS_LOGF_ERROR(AWS_LS_AUTH_CREDENTIALS_PROVIDER, "assumeRole chain contains a circular reference");
aws_raise_error(AWS_AUTH_PROFILE_STS_CREDENTIALS_PROVIDER_CYCLE_FAILURE);
Expand Down

0 comments on commit f66992b

Please sign in to comment.