virtclone: Drop --print-xml special --auto-clone behavior

For unclear reasons we allowed --print-xml without --file or
--auto-clone, like is required for a traditional clone, which
can lead to some weird behavior.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-11-03 13:01:39 -05:00
parent 1a1e4580c0
commit 8988572776

View File

@ -146,8 +146,7 @@ def main(conn=None):
conn = cli.getConnection(options.connect, conn=conn)
if (options.new_diskfile is None and
options.auto_clone is False and
options.xmlonly is False):
options.auto_clone is False):
fail(_("Either --auto-clone or --file is required,"
" use '--auto-clone or --file' and try again."))