mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
cli: make parse() guest argument optional
Because the non-guest parsers don't need it.
This commit is contained in:
2
virt-xml
2
virt-xml
@@ -137,7 +137,7 @@ def _find_objects_to_edit(guest, action_name, editval, parserclass):
|
||||
|
||||
else:
|
||||
# Lookup device by the passed prop string
|
||||
parserobj = parserclass(guest, editval)
|
||||
parserobj = parserclass(editval, guest=guest)
|
||||
inst = parserobj.lookup_child_from_option_string()
|
||||
if not inst:
|
||||
fail(_("No matching objects found for --%s %s") %
|
||||
|
||||
Reference in New Issue
Block a user