added some xml files
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
e807365ee9
commit
caf84a6326
|
@ -24,6 +24,8 @@ func addDomainDroplet(domcfg *libvirtxml.Domain) (*DropletT, error) {
|
||||||
d = new(DropletT)
|
d = new(DropletT)
|
||||||
|
|
||||||
d.pb = me.cluster.AddDroplet(domcfg.UUID, domcfg.Name, 2, 2*1024*1024)
|
d.pb = me.cluster.AddDroplet(domcfg.UUID, domcfg.Name, 2, 2*1024*1024)
|
||||||
|
d.pb.StartState = "off"
|
||||||
|
|
||||||
me.droplets = append(me.droplets, d)
|
me.droplets = append(me.droplets, d)
|
||||||
me.changed = true
|
me.changed = true
|
||||||
|
|
||||||
|
|
4
main.go
4
main.go
|
@ -81,6 +81,7 @@ func main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(argv.Xml) != 0 {
|
||||||
if me.changed {
|
if me.changed {
|
||||||
if argv.Save {
|
if argv.Save {
|
||||||
writeConfigFile()
|
writeConfigFile()
|
||||||
|
@ -88,12 +89,13 @@ func main() {
|
||||||
} else {
|
} else {
|
||||||
log.Info("Not saving changes (use --save to save)")
|
log.Info("Not saving changes (use --save to save)")
|
||||||
}
|
}
|
||||||
os.Exit(0)
|
|
||||||
}
|
}
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Info("adding xml files failed")
|
log.Info("adding xml files failed")
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
log.Info("command line hypervisors:", argv.Hosts)
|
log.Info("command line hypervisors:", argv.Hosts)
|
||||||
|
|
Loading…
Reference in New Issue