Skip to content

Commit c56dcae

Browse files
committed
clear_credentials now that we have multiple modes
1 parent d39374a commit c56dcae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pybritive/britive_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,13 +1168,13 @@ def request_disposition(self, request_id, decision):
11681168

11691169
def clear_cached_aws_credentials(self, profile):
11701170
# start with the profile name that was passed in from the command
1171-
Cache().clear_awscredentialprocess(profile_name=profile)
1171+
Cache().clear_credentials(profile_name=profile)
11721172

11731173
# then we can try to split it into parts and clear that version of the
11741174
# profile name as well - it will not hurt anything to try to clear
11751175
# both versions
11761176
parts = self._split_profile_into_parts(profile)
1177-
Cache().clear_awscredentialprocess(profile_name=f"{parts['app']}/{parts['env']}/{parts['profile']}")
1177+
Cache().clear_credentials(profile_name=f"{parts['app']}/{parts['env']}/{parts['profile']}")
11781178

11791179
def ssh_gcp_identity_aware_proxy(self, username, hostname, push_public_key, port_number, key_source):
11801180
self.silent = True

0 commit comments

Comments
 (0)