Project

General

Profile

Refactor #21056

make katello-change-hostname more resilient when searching for media

Added by Evgeni Golov about 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tooling
Target version:
Branch:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

k-c-h currently uses "hammer medium list --search #{@old_hostname}" to find media using the old hostname, this will also find media that have the old hostname in the name (but not the path) and those that have the old hostname as part of the path, but not as the hostname.

I propose using "--search 'path ~ //#{@old_hostname}/'" instead

Associated revisions

Revision 799cb5a9 (diff)
Added by Evgeni Golov about 4 years ago

Fixes #21056 - find old hostname only in host of media path

History

#1 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-packaging/pull/538 added

#2 Updated by Evgeni Golov about 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Justin Sherrill almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 250

Also available in: Atom PDF