rspec comes from user
authorTony Mack <tmack@cs.princeton.edu>
Thu, 19 Nov 2009 18:52:37 +0000 (18:52 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 19 Nov 2009 18:52:37 +0000 (18:52 +0000)
sfa/methods/get_ticket.py

index e1856da..f20a6fd 100644 (file)
@@ -38,8 +38,8 @@ class get_ticket(Method):
 
     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, rspec, request_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)
@@ -66,10 +66,6 @@ class get_ticket(Method):
         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)