Skip to content

Commit 932a16a

Browse files
authored
Update info.go
1 parent c11a1ac commit 932a16a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

handlers/info.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ func MakeInfoHandler(version, sha string) http.HandlerFunc {
2424

2525
log.Info("info request")
2626

27-
temp := typesv1.VersionInfo{
28-
Release: version,
29-
SHA: sha,
30-
}
31-
27+
3228
infoResponse := typesv1.ProviderInfo{
3329
Orchestration: OrchestrationIdentifier,
3430
Name: ProviderName,
35-
Version: &temp,
31+
Version:= typesv1.VersionInfo{
32+
Release: version,
33+
SHA: sha,
34+
},
3635
}
3736

3837
jsonOut, marshalErr := json.Marshal(infoResponse)

0 commit comments

Comments
 (0)