git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4ea977e
)
rspec comes from user
author
Tony Mack
<tmack@cs.princeton.edu>
Thu, 19 Nov 2009 18:52:37 +0000
(18:52 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Thu, 19 Nov 2009 18:52:37 +0000
(18:52 +0000)
sfa/methods/get_ticket.py
patch
|
blob
|
history
diff --git
a/sfa/methods/get_ticket.py
b/sfa/methods/get_ticket.py
index
e1856da
..
f20a6fd
100644
(file)
--- a/
sfa/methods/get_ticket.py
+++ b/
sfa/methods/get_ticket.py
@@
-38,8
+38,8
@@
class get_ticket(Method):
returns = Parameter(str, "String represeneation of a ticket object")
returns = Parameter(str, "String represeneation of a ticket object")
- def call(self, cred, hrn, request_hash=None):
- self.api.auth.authenticateCred(cred, [cred, hrn], request_hash)
+ def call(self, cred, hrn, r
spec, r
equest_hash=None):
+ self.api.auth.authenticateCred(cred, [cred, hrn
, rspec
], request_hash)
self.api.auth.check(cred, "getticket")
self.api.auth.verify_object_belongs_to_me(hrn)
self.api.auth.verify_object_permission(hrn)
self.api.auth.check(cred, "getticket")
self.api.auth.verify_object_belongs_to_me(hrn)
self.api.auth.verify_object_permission(hrn)
@@
-66,10
+66,6
@@
class get_ticket(Method):
initscripts = None
sliver['initscripts'] = initscripts
initscripts = None
sliver['initscripts'] = initscripts
- # get rspec info
- # conver plc slice tags to rspec attributes
- rspec = None
-
new_ticket.set_attributes(sliver)
new_ticket.set_rspec(rspec)
new_ticket.set_attributes(sliver)
new_ticket.set_rspec(rspec)