Skip to content

Commit

Permalink
Check config options as booleans instead of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
epierce committed Apr 29, 2024
1 parent 6653213 commit c694dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gimme_aws_creds/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ def get_profile_name(self, cred_profile, include_path, naming_data, resolve_alia
account = self._get_account_name(naming_data['account'], role, resolve_alias)
role_name = naming_data['role']
path = naming_data['path']
if include_path == 'True':
if include_path is True:
role_name = ''.join([path, role_name])
profile_name = '-'.join([account,
role_name])
Expand All @@ -827,7 +827,7 @@ def get_profile_name(self, cred_profile, include_path, naming_data, resolve_alia
return profile_name

def _get_account_name(self, account, role, resolve_alias):
if resolve_alias == "False":
if resolve_alias is False:
return account
account_alias = self._get_alias_from_friendly_name(role.friendly_account_name)
return account_alias or account
Expand Down

0 comments on commit c694dbc

Please sign in to comment.