virtclone: Only print/log 'clone successful' if we actually clone

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-11-03 13:14:13 -05:00
parent 8988572776
commit f4dc418e66
1 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@ import sys
from . import cli
from .cli import fail, print_stdout, print_stderr
from .cloner import Cloner
from .logger import log
def _process_src(options):
@ -195,10 +194,9 @@ def main(conn=None):
print_stdout(cloner.new_guest.get_xml(), do_force=True)
if run:
cloner.start_duplicate(cli.get_meter())
print_stdout("")
print_stdout(_("Clone '%s' created successfully.") % cloner.new_guest.name)
print_stdout("")
print_stdout(_("Clone '%s' created successfully.") % cloner.new_guest.name)
log.debug("end clone")
return 0