git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51490a6
)
Syntax error in permission checking for genicw.
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 11 Nov 2008 22:23:05 +0000
(22:23 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 11 Nov 2008 22:23:05 +0000
(22:23 +0000)
api.py
patch
|
blob
|
history
diff --git
a/api.py
b/api.py
index
0eac3e0
..
41ab0cd
100644
(file)
--- a/
api.py
+++ b/
api.py
@@
-66,7
+66,7
@@
class APIRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
caller_name = pwd.getpwuid(xid)[0]
# Special case the genicw
if method_name == "AdminTicket":
- if caller_name ==
'PLC_SLICE_PREFIX'
+"_genicw":
+ if caller_name ==
PLC_SLICE_PREFIX
+"_genicw":
try: result = method(*args)
except Exception, err: raise xmlrpclib.Fault(104, 'Error in call: %s' %err)
else: