Pavel Hrdina f19390d2d3 domain_conf: vnc: preserve autoport value if no port was specified
The issue is that if this graphics definition is provided:

  <graphics type='vnc' port='0'/>

it's parsed as:

  <graphics type='vnc' autoport='no'>
    <listen type='address'/>
  </graphics>

but if the resulting XML is parsed again the output is:

  <graphics type='vnc' port='-1' autoport='yes'>
    <listen type='address'/>
  </graphics>

and this should not happen.  The XML have to always remain the same
after it was already parsed by libvirt.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1383039

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-01-27 09:46:03 +01:00
..
2016-12-06 13:34:00 +01:00
2016-12-06 13:34:00 +01:00
2016-05-02 07:18:25 +02:00
2016-06-14 08:25:25 +02:00
2016-05-20 17:16:21 +02:00
2016-05-20 17:16:21 +02:00
2016-05-20 17:16:21 +02:00
2016-09-14 13:18:07 +02:00
2016-08-24 17:43:29 +02:00
2016-05-02 07:18:25 +02:00