mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
blacken daemons/masterapi.py and its test_auto_key
This commit is contained in:
parent
31146eae69
commit
74f02e8a68
1 changed files with 3 additions and 3 deletions
|
@ -17,11 +17,11 @@ def gen_permissions(owner="", group="", others=""):
|
|||
"""
|
||||
ret = 0
|
||||
for c in owner:
|
||||
ret |= getattr(stat, "S_I{}USR".format(c.upper()), 0)
|
||||
ret |= getattr(stat, f"S_I{c.upper()}USR", 0)
|
||||
for c in group:
|
||||
ret |= getattr(stat, "S_I{}GRP".format(c.upper()), 0)
|
||||
ret |= getattr(stat, f"S_I{c.upper()}GRP", 0)
|
||||
for c in others:
|
||||
ret |= getattr(stat, "S_I{}OTH".format(c.upper()), 0)
|
||||
ret |= getattr(stat, f"S_I{c.upper()}OTH", 0)
|
||||
return ret
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue