From fb25ff02b3b37434bdc65146c61a5704835b7c8c Mon Sep 17 00:00:00 2001 From: Adrian Vollmer Date: Mon, 16 May 2022 10:53:01 +0200 Subject: [PATCH] Add missing % operator for string formatting There are two arguments given for string formatting, but only one % formatter. This causes an error when the message is supposed to be printed. --- certipy/shadow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certipy/shadow.py b/certipy/shadow.py index 491bd48..6ffa416 100644 --- a/certipy/shadow.py +++ b/certipy/shadow.py @@ -92,7 +92,7 @@ def set_key_credentials( ) else: logging.error( - "Failed to update the Key Credentials for %s: " + "Failed to update the Key Credentials for %s: %s" % (repr(user.get("sAMAccountName")), result["message"]) ) return False