diff options
| author | Jeff Carr <[email protected]> | 2024-10-23 19:15:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-23 19:15:51 -0500 |
| commit | d09f4e25c25dced54d688597b5e9a903c456573d (patch) | |
| tree | 92fe88c807cbb41ef3f60047cd57a493d072db88 /event.go | |
| parent | 3ce3a0d7f640a71873eea29c70234ec9f4257b03 (diff) | |
switched to pb.DropletState enum
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'event.go')
| -rw-r--r-- | event.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" } |
