make flavor name and adapter_id to be the unique key

Change-Id: I86901b4bec172434768b8651b3f74baae4027083