Bug 725684

Summary: Katello-cli does not accept any parameter with space in it
Product: [Retired] Katello Reporter: Lukas Zapletal <lzap>
Component: ClientAssignee: Ivan Necas <inecas>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: gkhachik, inecas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-20 11:36:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lukas Zapletal 2011-07-26 09:55:38 UTC
Description of problem:

Katello-cli does not accept any parameter with space in it

# katello provider import_manifest --org=ACME_Corporation --name "red hat" --file=...
Could not find provider [ red ] within organization [ ACME_Corporation ]

The same for --name="red hat".

This is the same for all other parameters that accept spaces.

Comment 1 Lukas Zapletal 2011-07-26 10:07:22 UTC
5dc36b8 725684 - Katello-cli does not accept any parameter with space in it

Temporary solution not to use spaces in provider names, until we upgrade 
optparse to argparse.

Comment 2 Lukas Zapletal 2011-07-27 14:01:57 UTC
Please note:

F14 is not affected

F15 is affected

Comment 3 Garik Khachikyan 2011-09-19 13:46:04 UTC
no more "space" complains: 

seems issue is fixed. tried: katello-cli-0.1.10-1.git.212.1a8738d.el6.noarch

Comment 4 Lukas Zapletal 2011-09-20 08:43:44 UTC
Well the bug is still there (on Fedora 15)

Comment 5 Ivan Necas 2011-09-20 11:33:32 UTC
Finally probably found out the cause of the problem.

Lukas?

Do you use an alias script for calling the katello (to set up the PYTHONPATH, user etc.)?

If so, when using $* in bash, the original quotes are not used.

Using "$@" instead should work, e.g.

#!/bin/bash
katello -admin -p admin "$@"

Comment 6 Lukas Zapletal 2011-09-20 11:36:43 UTC
LoL nice one. Thanks :-)