Bug 720559 - bkr task-list --xml doesn't work
Summary: bkr task-list --xml doesn't work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 0.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ---
Assignee: Dan Callaghan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-12 03:42 UTC by Dan Callaghan
Modified: 2019-05-22 13:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-28 23:50:16 UTC


Attachments (Terms of Use)

Description Dan Callaghan 2011-07-12 03:42:04 UTC
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("&", "&amp;").replace("<", "&lt;")
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.

Comment 4 Raymond Mancy 2011-07-27 01:30:47 UTC
[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>


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