Actions
Bug #11147
closedhammer says "Error: 301 Moved Permanently" when you are missing "https://" in server option
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1242488
Description of problem:
Hammer says "Error: 301 Moved Permanently" when you are missing "https://" in server option. It is not user-friendly and I had to bug developer to find that typo.
Version-Release number of selected component (if applicable):
rubygem-hammer_cli-0.1.4.11-1.el6_6sat.noarch
How reproducible:
always
Steps to Reproduce:
1. hammer --server $(hostname) --username admin --password changeme organization create --label 'satellite-qa' --name 'satellite-qa'
- hammer --server $(hostname) --username admin --password changeme organization create --label 'satellite-qa' --name 'satellite-qa'
Could not create the organization:
Error: 301 Moved Permanently
Expected results:
Some useful error message explaining what is wrong
Additional info:
Running with "https://" is OK:
- hammer --server https://$(hostname) --username admin --password changeme organization create --label 'satellite-qa' --name 'satellite-qa'
Organization created
Actions