Bug 725684 - Katello-cli does not accept any parameter with space in it
Summary: Katello-cli does not accept any parameter with space in it
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Katello
Classification: Retired
Component: Client
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ivan Necas
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-26 09:55 UTC by Lukas Zapletal
Modified: 2011-09-20 11:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-20 11:36:43 UTC


Attachments (Terms of Use)

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 :-)


Note You need to log in before you can comment on or make changes to this bug.