Bug 500895 - Can't create a variable with a space in the value
Summary: Can't create a variable with a space in the value
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Provisioning
Version: 530
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Steve Salevan
URL:
Whiteboard:
Depends On:
Blocks: 457075
TreeView+ depends on / blocked
 
Reported: 2009-05-14 18:57 UTC by Justin Sherrill
Modified: 2009-09-10 19:25 UTC (History)
2 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 19:25:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Justin Sherrill 2009-05-14 18:57:45 UTC
Try to create a variable with a space in the value

i.e.


buddy=my name is jonas


it fails.  


The following should work:

buddy=my name is jonas
buddy="my name is jonas"

Comment 1 Justin Sherrill 2009-05-14 18:58:38 UTC
this is the variable page for profiles, systems, and distros.

Comment 2 Justin Sherrill 2009-05-14 19:43:16 UTC
Unless this is fixed, the variables (a feature of the cobbler integration) is nearly useless, as you would only be able to use 1 word variables.

Comment 3 Justin Sherrill 2009-05-14 19:53:33 UTC
Variables are used in cobbler templates so you can define variables for distros, profiles, and systems as key value pairs.


So say on some systems you want to clear the partition tables, but on a select few you don't.

You can define the variable

clearpart = clearpart --all

 at the profile level.

Then you simply redefine for those select systems as:

clearpart = clearpart --none


then in your kickstart you would add:
$clearpart 
as a kickstart option.


For all systems by default it would then replace $clearpart with "clearpart --all" unless it was overridden on that system.

Comment 4 Justin Sherrill 2009-05-19 17:23:42 UTC
89e26cf

Comment 5 Steve Salevan 2009-05-29 15:37:01 UTC
VERIFIED on 5/21 build.

Comment 6 Jeff Browning 2009-07-28 22:00:03 UTC
Tested on dhcp77-153

Comment 7 Brandon Perkins 2009-09-10 19:25:47 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html


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