Refactor #21056
make katello-change-hostname more resilient when searching for media
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
History
#1
Updated by The Foreman Bot almost 5 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 almost 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-packaging|799cb5a9e914f95696f49d336c13cf2ecd6ba6bb.
#3
Updated by Justin Sherrill over 4 years ago
- Legacy Backlogs Release (now unused) set to 250
Fixes #21056 - find old hostname only in host of media path