示例#1
0
 def GetIdentityInfoFromDB(name):
     lst = DataManager.GetIdentityInfo(name)
     if lst:
         return lst[0]
     else:
         logger.warning("Identity name %s not found in DB", name)
         return INVALID_INFO
示例#2
0
 def GetIdentityInfoFromDB(identityName):
     lst = DataManager.GetIdentityInfo(identityName)
     if lst:
         return lst[0]
     else:
         logger.warn("GetIdentityInfo : Identity %s not found in DB" %
                     identityName)
         info = {}
         info["uid"] = INVALID_ID
         info["gid"] = INVALID_ID
         info["groups"] = [INVALID_ID]
         return info