summaryrefslogtreecommitdiff
path: root/start.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 06:41:30 -0500
committerJeff Carr <[email protected]>2024-10-31 06:41:30 -0500
commite6ea90f8defd8f26702ed808bcf801f53ce3a327 (patch)
tree290626b309372941c6aa92c9536d048ffa6ec326 /start.go
parent22111183a5a6f9c87062d503c8a71a6a6955bed5 (diff)
compiles after lots of protobuf changes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'start.go')
-rw-r--r--start.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/start.go b/start.go
index ae1be08..cf82d36 100644
--- a/start.go
+++ b/start.go
@@ -38,7 +38,7 @@ func Start(name string) (string, error) {
}
// lookup the droplet by name
- d := findDroplet(name)
+ d := me.cluster.FindDropletByName(name)
if d == nil {
result = "can't start unknown droplet: " + name
return result, errors.New(result)
@@ -51,7 +51,7 @@ func Start(name string) (string, error) {
}
// is the droplet already on?
- if d.CurrentState == pb.DropletState_ON {
+ if d.Current.State == pb.DropletState_ON {
result = "EVENT start droplet " + d.Hostname + " is already ON"
return result, errors.New(result)
}