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/dragon_access.py

    rb16cfc0 rc65b7e4  
    149149        self.state[aid]['user'] = found
    150150        self.state[aid]['owners'] = owners
     151        self.state[aid]['auth'] = set()
     152        self.append_allocation_authorization(aid,
     153                ((fid, allocID),(allocID, allocID)))
    151154        self.write_state()
    152155        self.state_lock.release()
    153         self.auth.set_attribute(fid, allocID)
    154         self.auth.set_attribute(allocID, allocID)
    155         self.auth.save()
    156156
    157157        try:
     
    191191        if self.state.has_key(aid):
    192192            self.log.debug("Found allocation for %s" %aid)
     193            self.clear_allocation_authorization(aid)
    193194            del self.state[aid]
    194195            self.write_state()
Note: See TracChangeset for help on using the changeset viewer.