Ignore:
Timestamp:
Dec 10, 2010 6:25:50 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
9973d57
Parents:
b16cfc0
Message:

Access controllers delete (some) unused ABAC attrs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/protogeni_access.py

    rb16cfc0 rc65b7e4  
    275275        # The list of owner FIDs
    276276        self.allocation[aid]['owners'] = owners
     277        self.allocation[aid]['auth'] = set()
     278        self.append_allocation_authorization(aid,
     279                ((fid, allocID), (allocID, allocID)), state_attr='allocation')
    277280        self.write_state()
    278281        self.state_lock.release()
    279         self.auth.set_attribute(fid, allocID)
    280         self.auth.set_attribute(allocID, allocID)
    281         self.auth.save()
    282282
    283283        try:
     
    319319        if self.allocation.has_key(aid):
    320320            self.log.debug("Found allocation for %s" %aid)
     321            self.clear_allocation_authorization(aid, state_attr='allocation')
    321322            del self.allocation[aid]
    322323            self.write_state()
Note: See TracChangeset for help on using the changeset viewer.