Bug 737823
| Summary: | [PATCH] workflow-xslt: Implement support for boolean arguments | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | David Sommerseth <davids> |
| Component: | command line | Assignee: | Bill Peck <bpeck> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.7 | CC: | bpeck, dcallagh, mcsontos, ovasik, rmancy, stl |
| 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-10-20 06:19:10 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: | |||
|
Description
David Sommerseth
2011-09-13 08:01:16 UTC
I tried to run and verify this change on my local box, and I think it works as expected,
I used the example-job.xml from the man page and added:
<arg section="recipe" type="bool">
<name>foo</name>
<metavar>ENABLE-FOO</metavar>
<default>false</default>
<tag type="attribute" attrname="foo">name</tag>
<description>foo identifier</description
</arg>
And then ran the following:
bkr workflow-xslt --dry-run --job-xml example_job.xml --save-internal-xml example.xml -i 99 -n "Example" -g "Group1" --phone-numbers 123,456,789 --foo
The results it spat out was:
<submit>
<whiteboard/>
<recipe>
<phones>
<number>123</number>
<number>456</number>
<number>789</number>
</phones>
<name foo="true" group="Group1" version="99">Example</name>
</recipe>
</submit>
This seems fine to me.
ACK. This is exactly how this feature is designed to work. |