Skip to content
  • Andrea Bolognani's avatar
    virsh: Show 'connected to console' message later · 16d37076
    Andrea Bolognani authored
    
    
    Right now, we display the message before actually attempting
    to connect to the VM console. That operation, however, can
    fail for a number of reasons: for example, is the VM doesn't
    have a serial device, the output ends up looking like
    
      $ virsh console cirros
      Connected to domain 'cirros'
      Escape character is ^] (Ctrl + ])
      error: internal error: cannot find character device <null>
    
    The initial message is misleading. Change things so that it's
    only printed if we actually successfully connected to the VM
    console.
    
    Signed-off-by: default avatarAndrea Bolognani <abologna@redhat.com>
    Reviewed-by: default avatarPeter Krempa <pkrempa@redhat.com>
    16d37076