~ogham/doom

3068fd6fa874833bd7737cb0a02fcc2559545935 — Benjamin Sago 1 year, 10 months ago ff63d7c v0.6.2
Another Nomad
1 files changed, 2 insertions(+), 0 deletions(-)

M mroutes/health.go
M mroutes/health.go => mroutes/health.go +2 -0
@@ 24,6 24,7 @@ type versionInfo struct {
}

type nomadInfo struct {
    Id    string `json:"id"`
    Dc    string `json:"dc"`
    Index string `json:"index"`
}


@@ 51,6 52,7 @@ func AddRuntimeInfoRoute(r *chi.Mux) {
            },
            Nomad: nomadInfo{
                Dc: os.Getenv("NOMAD_DC"),
                Id: os.Getenv("NOMAD_ALLOC_ID"),
                Index: os.Getenv("NOMAD_ALLOC_INDEX"),
            },
        }