Bug 624089 - [Beaker][cmd_workflow_kernel] role= getting parm options not <parms>
Summary: [Beaker][cmd_workflow_kernel] role= getting parm options not <parms>
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Beaker
Classification: Retired
Component: scheduler
Version: 0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bill Peck
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-13 15:58 UTC by Jeff Burke
Modified: 2010-08-31 16:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-31 16:29:57 UTC
Embargoed:


Attachments (Terms of Use)

Description Jeff Burke 2010-08-13 15:58:28 UTC
Description of problem:
In the kenrel workflow. I use the below code snippet. 

<snip>
if arch == 'ia64':
    pkgparms = []
    pkgparms.append("PKGARGNAME=xen-ia64-guest-firmware")
    recipe.addTask("/distribution/pkginstall", (pkgparms))       
</snip>

It results in the following xml
<task name="/distribution/pkginstall" role="['PKGARGNAME=xen-ia64-guest-firmware']">
    <params/>
</task>

It should result in this:

<task name="/distribution/pkginstall" role="STANDALONE">
    <params>
        <param name="PKGARGNAME" value="xen-ia64-guest-firmware"/>
    </params>
</task>   


See: Recipe ID R:22698

Comment 1 Jeff Burke 2010-08-13 16:25:31 UTC
Changing the workflow to the below resolved the issue:

<snip>
if arch == 'ia64':
    pkgparms = []
    pkgparms.append("PKGARGNAME=xen-ia64-guest-firmware")
    recipe.addTask("/distribution/pkginstall", taskParams=pkgparms)
        <task name="/distribution/pkginstall" role="STANDALONE">
            <params>
                <param name="PKGARGNAME" value="xen-ia64-guest-firmware"/>
            </params>
        </task>


</snip>


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