cli: make parse() guest argument optional

Because the non-guest parsers don't need it.
This commit is contained in:
Cole Robinson
2019-05-10 17:20:21 -04:00
parent a7c620549a
commit 2a30a5f0bf
3 changed files with 12 additions and 13 deletions

View File

@@ -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") %