from sfa.trust.credential import *
from sfa.trust.certificate import *
from sfa.util.faults import *
+from sfa.trust.gid import create_uuid
def get_version(api):
version = {}
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: