Project

General

Profile

Actions

Bug #21341

closed

k-c-h errors when called /usr/sbin/katello-change-hostname

Added by Evgeni Golov over 7 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
High
Assignee:
Category:
Tooling
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

# /usr/sbin/katello-change-hostname -h
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- /usr/sbin/hostname-change.rb (LoadError)
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/sbin/katello-change-hostname:10:in `<main>'

This is because we check for the FILE being in /sbin, but in reality we install it to /usr/sbin these days.

The same bug is probably also present in other tools that were Class-ified

Actions

Also available in: Atom PDF