Project

General

Profile

Actions

Bug #20919

closed

katello-change-hostname silently fails when there are special (shell) chars in the password

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tooling
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

my admin password is change$me, so I call

katello-change-hostname katello.example.com -u admin -p 'change$me'

However, this seems not to be passed correctly while calling hammer, as the password is not quoted:

…
Updating default Foreman Proxy
Invalid username or password
…
**** Hostname change complete! **** 

And there is a new proxy added, instead of being updated:

# hammer capsule list
[Foreman] Password for admin: 
---|----------------------------------------|-----------------------------------------------------|--------------------------
ID | NAME                                   | URL                                                 | FEATURES                 
---|----------------------------------------|-----------------------------------------------------|--------------------------
1  | centos7-katello-3-4.kangae.example.com | https://centos7-katello-3-4.kangae.example.com:9090 | Pulp, TFTP, Puppet, Pu...
2  | katello.example.com                    | https://katello.example.com:9090                    | Pulp, TFTP, Puppet, Pu...
---|----------------------------------------|-----------------------------------------------------|--------------------------

Actions #1

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-packaging/pull/526 added
Actions #2

Updated by Evgeni Golov over 6 years ago

  • Category set to Tooling
Actions #3

Updated by Evgeni Golov over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release set to 250
Actions

Also available in: Atom PDF