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)