Actions
Bug #20921
closedkatello-change-hostname tries to change the wrong default proxy if default proxy id has multiple digits
Description
k-c-h currently uses the following to get the ID of the default proxy:
default_capsule_id = `hammer -u #{@options[:username]} -p #{@options[:password]} capsule list | grep #{old_hostname} | awk '{ print $1 }'`[0]
this only works for IDs that have a single digit, otherwise the `[0]` cuts all the remaining digits silently.
While I see no reason for the default proxy to be anything than ID 1, the code should cope for any number.
Actions