rename package virtigolib
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
4a58352ec2
commit
fb51876e8e
4
http.go
4
http.go
|
@ -6,7 +6,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go.wit.com/lib/virtigoxml"
|
"go.wit.com/lib/virtigolib"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if route == "/dumplibvirtxml" {
|
if route == "/dumplibvirtxml" {
|
||||||
virtigoxml.DumpLibvirtxmlDomainNames()
|
virtigolib.DumpLibvirtxmlDomainNames()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
main.go
6
main.go
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
"go.wit.com/dev/alexflint/arg"
|
"go.wit.com/dev/alexflint/arg"
|
||||||
pb "go.wit.com/lib/protobuf/virtbuf"
|
pb "go.wit.com/lib/protobuf/virtbuf"
|
||||||
"go.wit.com/lib/virtigoxml"
|
"go.wit.com/lib/virtigolib"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ func main() {
|
||||||
ValidateUniqueFilenames(me.cluster)
|
ValidateUniqueFilenames(me.cluster)
|
||||||
|
|
||||||
for _, filename := range argv.Xml {
|
for _, filename := range argv.Xml {
|
||||||
domcfg, err := virtigoxml.ReadXml(filename)
|
domcfg, err := virtigolib.ReadXml(filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// parsing the libvirt xml file failed
|
// parsing the libvirt xml file failed
|
||||||
log.Info("error:", filename, err)
|
log.Info("error:", filename, err)
|
||||||
|
@ -101,7 +101,7 @@ func main() {
|
||||||
}
|
}
|
||||||
// this is a new droplet. add it to the cluster
|
// this is a new droplet. add it to the cluster
|
||||||
log.Info("Add XML Droplet here", domcfg.Name)
|
log.Info("Add XML Droplet here", domcfg.Name)
|
||||||
_, newe, err := virtigoxml.AddDomainDroplet(me.cluster, domcfg)
|
_, newe, err := virtigolib.AddDomainDroplet(me.cluster, domcfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("addDomainDroplet() error", filename)
|
log.Info("addDomainDroplet() error", filename)
|
||||||
log.Info("addDomainDroplet() error", err)
|
log.Info("addDomainDroplet() error", err)
|
||||||
|
|
Loading…
Reference in New Issue