summaryrefslogtreecommitdiff
path: root/event.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-23 19:15:51 -0500
committerJeff Carr <[email protected]>2024-10-23 19:15:51 -0500
commitd09f4e25c25dced54d688597b5e9a903c456573d (patch)
tree92fe88c807cbb41ef3f60047cd57a493d072db88 /event.go
parent3ce3a0d7f640a71873eea29c70234ec9f4257b03 (diff)
switched to pb.DropletState enum
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'event.go')
-rw-r--r--event.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/event.go b/event.go
index a030736..4358ab6 100644
--- a/event.go
+++ b/event.go
@@ -6,6 +6,7 @@ import (
"time"
"go.wit.com/lib/gui/shell"
+ pb "go.wit.com/lib/protobuf/virtbuf"
"go.wit.com/log"
)
@@ -43,7 +44,7 @@ func clusterReady() (bool, string) {
}
func (d *DropletT) dropletReady() (bool, string) {
- if d.CurrentState == "ON" {
+ if d.CurrentState == pb.DropletState_ON {
return false, "EVENT start droplet is already ON"
}
if d.starts > 2 {
@@ -86,7 +87,7 @@ func Start(name string) (bool, string) {
return false, result
}
- if d.CurrentState == "ON" {
+ if d.CurrentState == pb.DropletState_ON {
return false, "EVENT start droplet is already ON"
}