Bug 500895

Summary: Can't create a variable with a space in the value
Product: Red Hat Satellite 5 Reporter: Justin Sherrill <jsherril>
Component: ProvisioningAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Steve Salevan <ssalevan>
Severity: high Docs Contact:
Priority: high    
Version: 530CC: bperkins, jbrownin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sat530 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-10 19:25:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 457075    

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