Fixes #8743 - Repo Index returns promoted repos

Updated repo index call to return repositories belonging to paticular env and content view combination. This code would work for non library envs previously .. Look at http://projects.theforeman.org/issues/8743 for more info.

Can we put the dot before the where?