mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
virtxml: Remove redundant listify calls
parse_option_strings always returns a list Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
4ca0d2c29b
commit
d2b346370a
@ -169,7 +169,6 @@ def action_add_device(guest, options, parserclass, devs):
|
||||
guest.add_device(dev)
|
||||
else:
|
||||
devs = cli.parse_option_strings(options, guest, None)
|
||||
devs = xmlutil.listify(devs)
|
||||
for dev in devs:
|
||||
dev.set_defaults(guest)
|
||||
|
||||
@ -213,7 +212,6 @@ def action_build_xml(conn, options, parserclass, guest):
|
||||
inst = inst.__class__(conn)
|
||||
|
||||
devs = cli.parse_option_strings(options, guest, inst)
|
||||
devs = xmlutil.listify(devs)
|
||||
for dev in devs:
|
||||
dev.set_defaults(guest)
|
||||
return devs
|
||||
|
Loading…
Reference in New Issue
Block a user