ignore apparmor in the xml files
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
e4c089f70e
commit
f15148b63e
19
xml.go
19
xml.go
|
@ -315,6 +315,25 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) {
|
|||
fmt.Printf("? CPU Mode: %+v\n", domcfg.CPU.Mode)
|
||||
}
|
||||
|
||||
// this goes away if SecLabel is zero'd out?
|
||||
//if domcfg.Metadata != nil {
|
||||
// fmt.Printf("? Metadata: %+v\n", domcfg.Metadata)
|
||||
//}
|
||||
var secnormal bool = true
|
||||
if len(domcfg.SecLabel) != 0 {
|
||||
for _, sec := range domcfg.SecLabel {
|
||||
if sec.Model == "apparmor" {
|
||||
} else {
|
||||
fmt.Printf("? SecLabel: %+v\n", sec)
|
||||
fmt.Printf("? SecLabel.Model: %+v\n", sec.Model)
|
||||
secnormal = false
|
||||
}
|
||||
}
|
||||
}
|
||||
if secnormal {
|
||||
domcfg.SecLabel = nil
|
||||
}
|
||||
|
||||
// this will move elsewhere in the protobuf someday
|
||||
if domcfg.OnPoweroff == "destroy" {
|
||||
domcfg.OnPoweroff = ""
|
||||
|
|
Loading…
Reference in New Issue