check if spice port has changed
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f15148b63e
commit
3ce3a0d7f6
|
@ -127,6 +127,7 @@ func updateDroplet(d *DropletT, domcfg *libvirtxml.Domain) bool {
|
||||||
if s.AutoPort == "yes" {
|
if s.AutoPort == "yes" {
|
||||||
// should ignore either way
|
// should ignore either way
|
||||||
} else {
|
} else {
|
||||||
|
if d.pb.SpicePort != int64(s.Port) {
|
||||||
// print out, but ignore the port number
|
// print out, but ignore the port number
|
||||||
d.pb.SpicePort = int64(s.Port)
|
d.pb.SpicePort = int64(s.Port)
|
||||||
fmt.Printf("Spice Port set to = %d\n", 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
|
// check type
|
||||||
if domcfg.Type != "kvm" {
|
if domcfg.Type != "kvm" {
|
||||||
|
|
1
xml.go
1
xml.go
|
@ -323,6 +323,7 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) {
|
||||||
if len(domcfg.SecLabel) != 0 {
|
if len(domcfg.SecLabel) != 0 {
|
||||||
for _, sec := range domcfg.SecLabel {
|
for _, sec := range domcfg.SecLabel {
|
||||||
if sec.Model == "apparmor" {
|
if sec.Model == "apparmor" {
|
||||||
|
// this should be configured in dom0
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("? SecLabel: %+v\n", sec)
|
fmt.Printf("? SecLabel: %+v\n", sec)
|
||||||
fmt.Printf("? SecLabel.Model: %+v\n", sec.Model)
|
fmt.Printf("? SecLabel.Model: %+v\n", sec.Model)
|
||||||
|
|
Loading…
Reference in New Issue