Actions::Katello::Repository::Sync reports success regardless errors
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1246054
Description of problem:
Actions::Katello::Repository::Sync reports success though traceback/error has been met and repository hasn't been synced.
This bug is about that success shouldn't be reported if an error is met during an action.
It's not about particular errors met:
- Yum Metadata: [Errno 2] No such file or directory: u'/var/lib/pulp/working/repos/....
- Yum Metadata: Forbidden
Version-Release number of selected component (if applicable):
if an error is met during repo sync
Steps to Reproduce:
1.trigger RH repository sync
errors/tracebacks are hidden and success is reported
result 'error' is reported if errors/traceback has been met