Revision 11ae7a0a lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
721 721
      kvm_cmd.extend(["-serial", "none"])
722 722

  
723 723
    spice_bind = hvp[constants.HV_KVM_SPICE_BIND]
724
    spice_ip_version = None
724 725
    if spice_bind:
725 726
      if netutils.IsValidInterface(spice_bind):
726 727
        # The user specified a network interface, we have to figure out the IP
......
756 757
        # ValidateParameters checked it.
757 758
        spice_address = spice_bind
758 759

  
759
      spice_arg = "addr=%s,ipv%s,port=%s" % (spice_address,
760
                                             spice_ip_version,
761
                                             instance.network_port)
762

  
763
      spice_arg = "%s,disable-ticketing" % spice_arg
760
      spice_arg = "addr=%s,port=%s,disable-ticketing" % (spice_address,
761
                                                         instance.network_port)
762
      if spice_ip_version:
763
        spice_arg = "%s,ipv%s" % (spice_arg, spice_ip_version)
764 764

  
765 765
      logging.info("KVM: SPICE will listen on port %s", instance.network_port)
766 766
      kvm_cmd.extend(["-spice", spice_arg])

Also available in: Unified diff