Project

General

Profile

Actions

Refactor #21056

closed

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

Added by Evgeni Golov almost 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tooling
Target version:
Branch:
Difficulty:
Triaged:
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

Actions

Also available in: Atom PDF