Remove minor redundancy in action_remove_device()

There's no need to call util.listify() twice.
This commit is contained in:
David H. Gutteridge 2017-02-13 19:42:38 -05:00 committed by Cole Robinson
parent b8dccf6aca
commit 9a451e6faa

View File

@ -217,7 +217,7 @@ def action_remove_device(guest, options, parserclass):
getattr(options, parserclass.cli_arg_name)[-1], parserclass)
devs = util.listify(devs)
for dev in util.listify(devs):
for dev in devs:
guest.remove_device(dev)
return devs