summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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()
}