Project

General

Profile

Actions

Bug #36844

closed

Add error handling in repo sync when trying to sync non-library repos

Added by Samir Jha 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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 #1

Updated by Partha Aji 8 months ago

  • Triaged changed from No to Yes
Actions #2

Updated by The Foreman Bot 8 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Samir Jha
  • Pull request https://github.com/Katello/katello/pull/10778 added
Actions #3

Updated by The Foreman Bot 8 months ago

  • Fixed in Releases Katello 4.11.0 added
Actions #4

Updated by Samir Jha 8 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF