git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b71e2b5
)
only attempt to remove top level authorities (pointer == -1)
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 16 Jul 2010 20:46:46 +0000
(20:46 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 16 Jul 2010 20:46:46 +0000
(20:46 +0000)
sfa/server/interface.py
patch
|
blob
|
history
diff --git
a/sfa/server/interface.py
b/sfa/server/interface.py
index
65b8d83
..
a2ef36e
100644
(file)
--- a/
sfa/server/interface.py
+++ b/
sfa/server/interface.py
@@
-153,9
+153,9
@@
class Interfaces(dict):
# get hrns that actually exist in the db
table = SfaTable()
# get hrns that actually exist in the db
table = SfaTable()
- records = table.find({'type': type})
+ records = table.find({'type': type
, 'pointer': -1
})
hrns_found = [record['hrn'] for record in records]
hrns_found = [record['hrn'] for record in records]
-
+
# remove old records
for record in records:
if record['hrn'] not in hrns_expected:
# remove old records
for record in records:
if record['hrn'] not in hrns_expected: