| Summary: | bkr task-list --xml doesn't work | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Dan Callaghan <dcallagh> |
| Component: | command line | Assignee: | Dan Callaghan <dcallagh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.6 | CC: | bpeck, dcallagh, mcsontos, 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-07-28 23:50:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
[root@rhel5 noarch]# bkr task-list --xml <task name="/distribution/inventory"> <params/> </task> <task name="/distribution/install"> <params/> </task> <task name="/distribution/reservesys"> <params/> </task> <task name="/distribution/beaker/dogfood"> <params/> </task> <task name="/distribution/beaker/setup"> <params/> </task> |
Traceback (most recent call last): File "src/bkr/client/main.py", line 59, in ? main() File "src/bkr/client/main.py", line 55, in main return parser.run() File "/usr/lib/python2.4/site-packages/kobo/cli.py", line 282, in run cmd.run(*cmd_args, **cmd_kwargs) File "/home/dcallagh/work/beaker/Client/src/bkr/client/commands/cmd_task_list.py", line 76, in run print xmltask.toprettyxml() File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/minidom.py", line 61, in toprettyxml self.writexml(writer, "", indent, newl) File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/minidom.py", line 816, in writexml _write_data(writer, attrs[a_name].value) File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/minidom.py", line 304, in _write_data data = data.replace("&", "&").replace("<", "<") AttributeError: 'dict' object has no attribute 'replace' Output without --xml has also changed (from a string task name to a dict). This would be due to changing the return type of the tasks.filter XML-RPC method.