Agent: Convert plaintext to str()
get_plaintext() can return bytes. Convert the output to a str in PowershellClient to avoid potential issues.
This commit is contained in:
parent
de9b5601d8
commit
8e3bf96589
|
@ -43,7 +43,7 @@ def format_password(credentials: Credentials) -> Optional[str]:
|
|||
if credentials.secret_type == SecretType.CACHED:
|
||||
return None
|
||||
|
||||
plaintext_secret = get_plaintext(credentials.secret)
|
||||
plaintext_secret = str(get_plaintext(credentials.secret))
|
||||
|
||||
if credentials.secret_type == SecretType.PASSWORD:
|
||||
return plaintext_secret
|
||||
|
|
Loading…
Reference in New Issue