rename package virtigolib

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-31 06:50:57 -05:00
parent 4a58352ec2
commit fb51876e8e
2 changed files with 5 additions and 5 deletions

View File

@ -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
} }

View File

@ -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)