Skip to content

Commit

Permalink
Update info.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yannip1234 authored Feb 2, 2022
1 parent 6877e6c commit c11a1ac
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions handlers/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ func MakeInfoHandler(version, sha string) http.HandlerFunc {
}

log.Info("info request")


temp := typesv1.VersionInfo{
Release: version,
SHA: sha,
}

infoResponse := typesv1.ProviderInfo{
Orchestration: OrchestrationIdentifier,
Name: ProviderName,
Version: typesv1.VersionInfo{
Release: version,
SHA: sha,
},
Version: &temp,
}

jsonOut, marshalErr := json.Marshal(infoResponse)
Expand Down

0 comments on commit c11a1ac

Please # to comment.