Bug #27101
closedhammer content view version export does not returns correct repository.
Description
Description of problem:
If we try to export the content-view version which has some repositories with download policy "immediate" and some has "on-demand". In this case, it fails with the error -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Could not export the content view:
Error: All exported repositories must be set to an immediate download policy and re-synced.
The following repositories need action:
Red Hat Satellite Tools 6.5 for RHEL 7 Server RPMs x86_64, Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It should only return the repositories name in need action those download policy is "On-demand".
Actual results:
Return all the repositories in the content-view version.
Expected results:
Should only report the repositories with download policy "On-demand".