From fb51876e8e0f1d223015acef5aab7d2345dfae4d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 31 Oct 2024 06:50:57 -0500 Subject: [PATCH] rename package virtigolib Signed-off-by: Jeff Carr --- http.go | 4 ++-- main.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/http.go b/http.go index 971c906..2f4c688 100644 --- a/http.go +++ b/http.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "go.wit.com/lib/virtigoxml" + "go.wit.com/lib/virtigolib" "go.wit.com/log" ) @@ -106,7 +106,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) { } if route == "/dumplibvirtxml" { - virtigoxml.DumpLibvirtxmlDomainNames() + virtigolib.DumpLibvirtxmlDomainNames() return } diff --git a/main.go b/main.go index 33b5e9b..24a9dc2 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( "go.wit.com/dev/alexflint/arg" pb "go.wit.com/lib/protobuf/virtbuf" - "go.wit.com/lib/virtigoxml" + "go.wit.com/lib/virtigolib" "go.wit.com/log" ) @@ -90,7 +90,7 @@ func main() { ValidateUniqueFilenames(me.cluster) for _, filename := range argv.Xml { - domcfg, err := virtigoxml.ReadXml(filename) + domcfg, err := virtigolib.ReadXml(filename) if err != nil { // parsing the libvirt xml file failed log.Info("error:", filename, err) @@ -101,7 +101,7 @@ func main() { } // this is a new droplet. add it to the cluster 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 { log.Info("addDomainDroplet() error", filename) log.Info("addDomainDroplet() error", err)