Fixes #5747 - Fine grained control over name expansion

Has to be merged together with: https://github.com/theforeman/hammer-cli/pull/115