mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use f-string instead of str()
This commit is contained in:
parent
22eb8282f1
commit
b6d532ce44
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue