From: Tony Mack Date: Mon, 9 Aug 2010 19:01:16 +0000 (+0000) Subject: in remove(), make sure use type if it is None X-Git-Tag: sfa-1.0-0~51 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=9bf6e22dbf53ac1e8e79548aa7341638c98965bd in remove(), make sure use type if it is None --- diff --git a/sfa/managers/registry_manager_pl.py b/sfa/managers/registry_manager_pl.py index 6f929e9d..1636eda3 100644 --- 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} - if type not in ['all', '*']: + if type and type not in ['all', '*']: filter['type'] = type records = table.find(filter) if not records: