check if spice port has changed

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-23 18:53:02 -05:00
parent f15148b63e
commit 3ce3a0d7f6
2 changed files with 7 additions and 4 deletions

View File

@ -127,6 +127,7 @@ func updateDroplet(d *DropletT, domcfg *libvirtxml.Domain) bool {
if s.AutoPort == "yes" {
// should ignore either way
} else {
if d.pb.SpicePort != int64(s.Port) {
// print out, but ignore the port number
d.pb.SpicePort = int64(s.Port)
fmt.Printf("Spice Port set to = %d\n", s.Port)
@ -134,6 +135,7 @@ func updateDroplet(d *DropletT, domcfg *libvirtxml.Domain) bool {
}
}
}
}
// check type
if domcfg.Type != "kvm" {

1
xml.go
View File

@ -323,6 +323,7 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) {
if len(domcfg.SecLabel) != 0 {
for _, sec := range domcfg.SecLabel {
if sec.Model == "apparmor" {
// this should be configured in dom0
} else {
fmt.Printf("? SecLabel: %+v\n", sec)
fmt.Printf("? SecLabel.Model: %+v\n", sec.Model)