Actions
Bug #36844
closedAdd error handling in repo sync when trying to sync non-library repos
Description
hammer> repository sync --id 321 --organization-id 1
Could not synchronize the repository:
undefined method `id' for nil:NilClass
hammer>
This is error sync raises from this action: `plan_action(Katello::Foreman::ContentUpdate, repo.environment, repo.content_view, repo)` when syncing non-library repos.
We shouldn't be planning sync action at all for non-library repos and the call should fail early and with proper error handling.
Actions