Return a list of project IDs assigned to flavor ID

def flavor_access_list(self, **kwargs):
        '''
        Return a list of project IDs assigned to flavor ID
        '''
        flavor_id = kwargs.get('flavor_id')
        nt_ks = self.compute_conn
        ret = {flavor_id: []}
        flavor_accesses = nt_ks.flavor_access.list(flavor=flavor_id, **kwargs)
        for project in flavor_accesses:
            ret[flavor_id].append(project.tenant_id)
        return ret