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" {
|
||||
// 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
1
xml.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue