virtapi.instance_type_get is deprecated, so flavor function is used to get flavor