diff --git a/gapi/deploy.go b/gapi/deploy.go index 31616063..9cd7fa4b 100644 --- a/gapi/deploy.go +++ b/gapi/deploy.go @@ -34,6 +34,7 @@ func init() { // TODO: add staged rollout functionality to this struct // TODO: add proper authentication with gpg key signing type Deploy struct { + ID uint64 Name string // lang, puppet, yaml, etc... //Sync bool // wait for everyone to close previous GAPI before switching Noop bool diff --git a/lib/main.go b/lib/main.go index 4686d133..1d26771f 100644 --- a/lib/main.go +++ b/lib/main.go @@ -529,6 +529,9 @@ func (obj *Main) Run() error { continue } mainDeploy = deploy // save this one + if id := mainDeploy.ID; id != 0 { + Logf("deploy: got id: %d", id) + } gapiObj := mainDeploy.GAPI if gapiObj == nil { Logf("deploy: received empty gapi") @@ -891,6 +894,7 @@ func (obj *Main) Run() error { Logf("deploy: error decoding deploy: %+v", err) continue } + deploy.ID = latest // store the ID select { case deployChan <- deploy: