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.pb = me.cluster.AddDroplet(domcfg.UUID, domcfg.Name, 2, 2*1024*1024)
|
||||
d.pb.StartState = "off"
|
||||
|
||||
me.droplets = append(me.droplets, d)
|
||||
me.changed = true
|
||||
|
||||
|
|
22
main.go
22
main.go
|
@ -81,19 +81,21 @@ func main() {
|
|||
}
|
||||
}
|
||||
}
|
||||
if me.changed {
|
||||
if argv.Save {
|
||||
writeConfigFile()
|
||||
writeConfigFileDroplets()
|
||||
} else {
|
||||
log.Info("Not saving changes (use --save to save)")
|
||||
if len(argv.Xml) != 0 {
|
||||
if me.changed {
|
||||
if argv.Save {
|
||||
writeConfigFile()
|
||||
writeConfigFileDroplets()
|
||||
} else {
|
||||
log.Info("Not saving changes (use --save to save)")
|
||||
}
|
||||
}
|
||||
if !ok {
|
||||
log.Info("adding xml files failed")
|
||||
os.Exit(-1)
|
||||
}
|
||||
os.Exit(0)
|
||||
}
|
||||
if !ok {
|
||||
log.Info("adding xml files failed")
|
||||
os.Exit(-1)
|
||||
}
|
||||
|
||||
/*
|
||||
log.Info("command line hypervisors:", argv.Hosts)
|
||||
|
|
Loading…
Reference in New Issue