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:
dcddf6c
)
in remove(), make sure use type if it is None
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 9 Aug 2010 19:01:16 +0000
(19:01 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 9 Aug 2010 19:01:16 +0000
(19:01 +0000)
sfa/managers/registry_manager_pl.py
patch
|
blob
|
history
diff --git
a/sfa/managers/registry_manager_pl.py
b/sfa/managers/registry_manager_pl.py
index
6f929e9
..
1636eda
100644
(file)
--- a/
sfa/managers/registry_manager_pl.py
+++ b/
sfa/managers/registry_manager_pl.py
@@
-372,7
+372,7
@@
def remove(api, xrn, type, origin_hrn=None):
table = SfaTable()
filter = {'hrn': hrn}
table = SfaTable()
filter = {'hrn': hrn}
- if type not in ['all', '*']:
+ if type
and type
not in ['all', '*']:
filter['type'] = type
records = table.find(filter)
if not records:
filter['type'] = type
records = table.find(filter)
if not records: