summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/version.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-20 07:16:35 -0400
committerGitHub <noreply@github.com>2022-05-20 07:16:35 -0400
commit916d8231c52eb89fae9982c63a956388fca648c2 (patch)
tree335652b32332e57e092a1bbf80914517190f136e /pkg/api/handlers/compat/version.go
parent1916fe22a932183e0847e9f7b087f6ece4d7c48c (diff)
parent5b79cf15a0226dc3dad5053615ee652823376cd3 (diff)
downloadpodman-916d8231c52eb89fae9982c63a956388fca648c2.tar.gz
podman-916d8231c52eb89fae9982c63a956388fca648c2.tar.bz2
podman-916d8231c52eb89fae9982c63a956388fca648c2.zip
Merge pull request #14297 from jwhonce/wip/swagger
Swagger refactor/cleanup
Diffstat (limited to 'pkg/api/handlers/compat/version.go')
-rw-r--r--pkg/api/handlers/compat/version.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg/api/handlers/compat/version.go b/pkg/api/handlers/compat/version.go
index b113fbc90..cfc3468c2 100644
--- a/pkg/api/handlers/compat/version.go
+++ b/pkg/api/handlers/compat/version.go
@@ -57,13 +57,15 @@ func VersionHandler(w http.ResponseWriter, r *http.Request) {
Version: conmon.Version,
Details: map[string]string{
"Package": conmon.Package,
- }},
+ },
+ },
{
Name: fmt.Sprintf("OCI Runtime (%s)", oci.Name),
Version: oci.Version,
Details: map[string]string{
"Package": oci.Package,
- }},
+ },
+ },
}
components = append(components, additional...)
}
@@ -89,5 +91,6 @@ func VersionHandler(w http.ResponseWriter, r *http.Request) {
MinAPIVersion: fmt.Sprintf("%d.%d", minVersion.Major, minVersion.Minor),
Os: components[0].Details["Os"],
Version: components[0].Version,
- }})
+ },
+ })
}