Agent: Use isinstance() to check if identity is Username

This commit is contained in:
Mike Salvatore 2022-09-07 07:50:39 -04:00
parent c8f131e6b0
commit 1fc0718554
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class AggregatingPropagationCredentialsRepository(IPropagationCredentialsReposit
self._add_secret(credentials.secret)
def _add_identity(self, identity: Identity):
if type(identity) == Username:
if isinstance(identity, Username):
self._stored_credentials.setdefault("exploit_user_list", set()).add(identity.username)
def _add_secret(self, secret: Secret):