import closer to working
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
0076d3cb2d
commit
70634ec66e
|
@ -73,7 +73,6 @@ func importDomain(w http.ResponseWriter, r *http.Request) (string, error) {
|
|||
result := fmt.Sprintln("marshal worked", domcfg.Name, domcfg.UUID)
|
||||
log.Log(WARN, result)
|
||||
fmt.Fprintln(w, result)
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
|
@ -109,11 +108,11 @@ func (h *HyperT) importDomain(d *pb.Droplet) (bool, string) {
|
|||
return true, result
|
||||
}
|
||||
|
||||
func postImportDomain(hostname string, name string) ([]byte, error) {
|
||||
url := "http://" + hostname + ":2520/import?domain=" + hostname
|
||||
func postImportDomain(hypervisor string, domain string) ([]byte, error) {
|
||||
url := "http://" + hypervisor + ":2520/import?domain=" + domain
|
||||
var msg string
|
||||
var data []byte
|
||||
msg = "import " + name
|
||||
msg = "import " + domain
|
||||
data = []byte(msg) // Convert the string to []byte
|
||||
req, err := httpPost(url, data)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue