git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8f070b5
)
- add peer to roles
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 15 Dec 2006 19:42:27 +0000
(19:42 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 15 Dec 2006 19:42:27 +0000
(19:42 +0000)
- fix returns
PLC/Methods/GetPeerName.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetPeerName.py
b/PLC/Methods/GetPeerName.py
index
9d0dc24
..
ba5a5a7
100644
(file)
--- a/
PLC/Methods/GetPeerName.py
+++ b/
PLC/Methods/GetPeerName.py
@@
-8,12
+8,12
@@
class GetPeerName (Method):
"""
Returns this peer's name, as defined in the config as PLC_NAME
"""
- roles = ['admin']
+
+ roles = ['admin', 'peer']
accepts = [Auth()]
- returns = P
arameter (Peer.fields['peername'])
+ returns = P
eer.fields['peername']
def call (self, auth):
return self.api.config.PLC_NAME
-