in remove(), make sure use type if it is None
authorTony Mack <tmack@cs.princeton.edu>
Mon, 9 Aug 2010 19:01:16 +0000 (19:01 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Mon, 9 Aug 2010 19:01:16 +0000 (19:01 +0000)
sfa/managers/registry_manager_pl.py

index 6f929e9..1636eda 100644 (file)
@@ -372,7 +372,7 @@ def remove(api, xrn, type, origin_hrn=None):
 
     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: