projects
/
invirt/packages/invirt-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6325ecf
)
Format function names according to Pylint
author
Ben Steffen
<bds@mit.edu>
Tue, 26 Nov 2019 05:21:53 +0000
(
00:21
-0500)
committer
Ben Steffen
<bds@mit.edu>
Tue, 26 Nov 2019 05:21:53 +0000
(
00:21
-0500)
python/invirt/authz.py
patch
|
blob
|
history
diff --git
a/python/invirt/authz.py
b/python/invirt/authz.py
index
ed25074
..
34f53c8
100644
(file)
--- a/
python/invirt/authz.py
+++ b/
python/invirt/authz.py
@@
-14,13
+14,13
@@
import pkg_resources
from invirt.config import structs as cfg
from invirt.config import structs as cfg
-def expandOwner(name):
+def expand_owner(name):
"""Expand an "owner" to a list of authorized users."""
for ep in pkg_resources.iter_entry_points('invirt.authz', cfg.authz.name):
return ep.load().expandOwner(name)
"""Expand an "owner" to a list of authorized users."""
for ep in pkg_resources.iter_entry_points('invirt.authz', cfg.authz.name):
return ep.load().expandOwner(name)
-def expandAdmin(name):
+def expand_admin(name):
"""Expand an "administrator" to a list of authorized users."""
for ep in pkg_resources.iter_entry_points('invirt.authz', cfg.authz.name):
return ep.load().expandAdmin(name)
"""Expand an "administrator" to a list of authorized users."""
for ep in pkg_resources.iter_entry_points('invirt.authz', cfg.authz.name):
return ep.load().expandAdmin(name)