Changeset c65b7e4 for fedd/federation/emulab_access.py
- Timestamp:
- Dec 10, 2010 6:25:50 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 9973d57
- Parents:
- b16cfc0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
rb16cfc0 rc65b7e4 254 254 'Bad mapping (unbalanced parens or more than 1 comma)') 255 255 256 257 256 # RequestAccess support routines 258 257 … … 384 383 self.state_lock.acquire() 385 384 self.allocation[aid] = { } 385 self.allocation[aid]['auth'] = set() 386 386 try: 387 387 pname = ap['project']['name']['localname'] … … 511 511 for k, v in svc_state.items(): 512 512 self.allocation[aid][k] = v 513 self.append_allocation_authorization(aid, 514 set([(o, allocID) for o in owners]), state_attr='allocation') 513 515 self.write_state() 514 516 self.state_lock.release() 515 # Give the owners the right to change this allocation516 for o in owners:517 self.auth.set_attribute(o, allocID)518 self.auth.save()519 517 try: 520 518 f = open("%s/%s.pem" % (self.certdir, aid), "w") … … 591 589 if aid in self.allocation: 592 590 self.log.debug("Found allocation for %s" %aid) 591 self.clear_allocation_authorization(aid, state_attr='allocation') 593 592 for k in self.allocation[aid]['keys']: 594 593 kk = "%s:%s" % k
Note: See TracChangeset
for help on using the changeset viewer.