diff options
| author | Jeff Carr <[email protected]> | 2025-06-04 06:18:55 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-06-04 06:29:52 -0500 |
| commit | 65563eb8e267896c308839b7cc984f73a4d101b6 (patch) | |
| tree | e0d41331df701892ceea19963e75209e79017f56 /start.go | |
| parent | bf01596f307ada684019ab863b4c447855c465b5 (diff) | |
droplet create makes the network and disksv0.2.56
Diffstat (limited to 'start.go')
| -rw-r--r-- | start.go | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -52,14 +52,13 @@ func Start(id string) (string, error) { } if d.Current == nil { - // result = d.Hostname + " d.Current == nil" - // return result, errors.New(result) + d.Current = new(virtpb.Current) + } - // is the droplet already on? - if d.Current.State == virtpb.DropletState_ON { - result = "EVENT start droplet " + d.Hostname + " is already ON" - return result, errors.New(result) - } + // is the droplet already on? + if d.Current.State == virtpb.DropletState_ON { + result = "EVENT start droplet " + d.Hostname + " is already ON" + return result, errors.New(result) } // make the list of hypervisors that are active and can start new droplets |
