Use f-string instead of str()

This commit is contained in:
twangboy 2025-03-10 07:42:19 -06:00
parent 22eb8282f1
commit b6d532ce44
No known key found for this signature in database
GPG key ID: ED267D5C0DE6F8A6

View file

@ -65,7 +65,7 @@ def _get_group_object(name):
"""
with salt.utils.winapi.Com():
nt = win32com.client.Dispatch("AdsNameSpaces")
return nt.GetObject("", "WinNT://./" + str(name) + ",group")
return nt.GetObject("", f"WinNT://./{name},group")
def _get_all_groups():