Changeset 822d31b
- Timestamp:
- Nov 30, 2010 11:54:31 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- c002cb2
- Parents:
- 78f2668
- Location:
- fedd/federation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/authorizer.py
r78f2668 r822d31b 170 170 return rv 171 171 172 def save(self, fn): 173 f = open(fn, "w") 174 pickle.dump(self, f) 175 f.close() 176 177 def load(self, fn): 178 f = open(fn, "r") 179 a = pickle.load(f) 180 f.close() 181 self.attrs = a.attrs 182 self.globals = a.globals 172 def save(self, fn=None): 173 if fn: 174 f = open(fn, "w") 175 pickle.dump(self, f) 176 f.close() 177 178 def load(self, fn=None): 179 if fn: 180 f = open(fn, "r") 181 a = pickle.load(f) 182 f.close() 183 self.attrs = a.attrs 184 self.globals = a.globals 183 185 184 186 -
fedd/federation/emulab_access.py
r78f2668 r822d31b 534 534 for o in owners: 535 535 self.auth.set_attribute(o, allocID) 536 print "Set delete rights on %s for %s" % (o, allocID)537 536 self.auth.save() 538 537 try: -
fedd/federation/experiment_control.py
r78f2668 r822d31b 1150 1150 else: 1151 1151 cert = self.cert_file 1152 pw = self.cert_pw 1152 pw = self.cert_pwd 1153 1153 1154 1154 for tb in allocated.keys(): … … 1849 1849 # make a protected copy of the access certificate so the experiment 1850 1850 # controller can act as the experiment principal. 1851 if expcert :1851 if expcert and self.auth_type != 'legacy': 1852 1852 expcert_file = self.make_temp_certfile(expcert, tmpdir) 1853 1853 if not expcert_file: … … 2486 2486 # If no expcert, try the deallocation as the experiment 2487 2487 # controller instance. 2488 if expcert :2488 if expcert and self.auth_type != 'legacy': 2489 2489 cert_file = self.make_temp_certfile(expcert, tmpdir) 2490 2490 pw = None 2491 2491 else: 2492 2492 cert_file = self.cert_file 2493 pw = self.cert_pw 2493 pw = self.cert_pwd 2494 2494 2495 2495 # Stop everyone. NB, wait_for_all waits until a thread starts
Note: See TracChangeset
for help on using the changeset viewer.