Code Review
/
ric-plt
/
appmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge DOC changes to master
[ric-plt/appmgr.git]
/
cmd
/
appmgr
/
api.go
diff --git
a/cmd/appmgr/api.go
b/cmd/appmgr/api.go
index
db54eb2
..
7acb7c7
100755
(executable)
--- a/
cmd/appmgr/api.go
+++ b/
cmd/appmgr/api.go
@@
-26,6
+26,7
@@
import (
"github.com/spf13/viper"
"log"
"net/http"
"github.com/spf13/viper"
"log"
"net/http"
+ "time"
)
// API functions
)
// API functions
@@
-181,6
+182,13
@@
func (m *XappManager) deployXapp(w http.ResponseWriter, r *http.Request) {
return
}
return
}
+ for i := 0; i < 3; i++ {
+ if xapp, err = m.helm.Status(xapp.Name); xapp.Instances != nil {
+ break
+ }
+ time.Sleep(time.Duration(5) * time.Second)
+ }
+
respondWithJSON(w, http.StatusCreated, xapp)
m.sd.Publish(xapp, EventType("created"))
respondWithJSON(w, http.StatusCreated, xapp)
m.sd.Publish(xapp, EventType("created"))