Skip to content

Commit

Permalink
Update source/credentials_provider_profile.c
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Graeb <[email protected]>
  • Loading branch information
waahm7 and graebm authored Jan 18, 2024
1 parent 3eee62c commit 3443882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/credentials_provider_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ static struct aws_credentials_provider *s_credentials_provider_new_profile_inter
goto on_finished;
}
const struct aws_profile_property *role_arn_property = aws_profile_get_property(profile, s_role_arn_name);
bool profile_contains_access_key = aws_profile_get_property(profile, s_access_key_id_profile_var);
bool profile_contains_secret_access_key = aws_profile_get_property(profile, s_secret_access_key_profile_var);
bool profile_contains_access_key = aws_profile_get_property(profile, s_access_key_id_profile_var) != NULL;
bool profile_contains_secret_access_key = aws_profile_get_property(profile, s_secret_access_key_profile_var) != NULL;
bool profile_contains_credentials = profile_contains_access_key || profile_contains_secret_access_key;

struct aws_hash_element *element = NULL;
Expand Down

0 comments on commit 3443882

Please sign in to comment.