Fixing the broken API contract for flavor_id

fixes bug 1198318

Change-Id: Ifae19ab495bdb274fb840741f0cde5274b633b31