summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-06 05:24:09 -0600
committerJeff Carr <[email protected]>2024-11-06 05:24:09 -0600
commit3c9d1d6f1d78bbf1ba86097bd29133d96dde6698 (patch)
tree6a775ff41abf377a3589d579e56c56e7e2e84e42 /main.go
parent0da809ae42582f573ada0a73e22c3fb1dceca6de (diff)
still runs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.go b/main.go
index 7e36374..55173f2 100644
--- a/main.go
+++ b/main.go
@@ -56,6 +56,10 @@ func main() {
me.cluster = pb.InitCluster()
if err := me.cluster.ConfigLoad(); err != nil {
log.Info("config load error", err)
+ log.Info("")
+ log.Info("You have never run this before")
+ log.Info("init example cloud here")
+ log.Sleep(2)
os.Exit(-1)
}
@@ -162,6 +166,15 @@ func main() {
go h.NewWatchdog()
}
+ var cloud *virtigolib.CloudManager
+ cloud = virtigolib.NewCloud()
+ found, _ := cloud.FindDropletByName("www.wit.com")
+ if found == nil {
+ log.Info("d == nil")
+ } else {
+ log.Info("d == ", found)
+ }
+
// sit here
startHTTP()
}