diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 05:22:41 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 05:22:41 -0600 | 
| commit | f45dacfcaf5d674b8ec36a245591088e0e8f0f81 (patch) | |
| tree | 0425f6308907ec3e41739af4951a024bd6123d96 | |
| parent | 6944de6d8509bc024bd1749913dcf0b4fcb97740 (diff) | |
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | create.go | 9 | ||||
| -rw-r--r-- | main.go | 2 | ||||
| -rw-r--r-- | structs.go | 2 | 
3 files changed, 8 insertions, 5 deletions
@@ -25,14 +25,17 @@ func createFilename(dir string, filename string) error {  	hostname := strings.TrimSuffix(filename, filetype)  	log.Info("hostname ==", hostname) -	var newDroplet *pb.Droplet -	newDroplet = new(pb.Droplet) -	newDroplet.Hostname = hostname +	newDroplet := pb.NewDefaultDroplet(hostname)  	newDisk := new(pb.Disk)  	newDisk.Filename = filename  	newDisk.Filepath = dir  	newDroplet.Disks = append(newDroplet.Disks, newDisk) +	var eth *pb.Network +	eth = new(pb.Network) +	eth.Name = "worldbr" +	newDroplet.Networks = append(newDroplet.Networks, eth) +  	url := urlbase + "/create"  	//	body, err := postDropletJSON(url, newDroplet) @@ -77,7 +77,7 @@ func main() {  		}  		log.Info("\n\nshould import here", argv.Start, "\n")  		log.Info("import", argv.Import.Host, argv.Import.DomainName) -		url := "/import?domainName=" +  argv.Import.DomainName +		url := "/import?domainName=" + argv.Import.DomainName  		if argv.Import.Force {  			url += "&force=true"  		} @@ -20,7 +20,7 @@ func (b *virtigoT) Enable() {  // this app's variables  type virtigoT struct { -	cluster   *pb.Cluster             // basic cluster settings +	cluster   *pb.Cluster                // basic cluster settings  	hmap      map[*pb.Hypervisor]*HyperT // map to the local struct  	names     []string  	hypers    []*HyperT  | 
