We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f302fe1 commit 4905144Copy full SHA for 4905144
container/podman/podman.go
@@ -113,8 +113,19 @@ func Status() (v1.DockerStatus, error) {
113
return v1.DockerStatus{}, err
114
}
115
116
- status.Version, _ = VersionString()
117
- status.APIVersion, _ = APIVersionString()
+ podmanVersion, err := VersionString()
+ if err != nil {
118
+ // status.Version will be "Unknown"
119
+ return status, err
120
+ }
121
+ status.Version = podmanVersion
122
+
123
+ podmanAPIVersion, err := APIVersionString()
124
125
+ // status.APIVersion will be "Unknown"
126
127
128
+ status.APIVersion = podmanAPIVersion
129
130
return status, nil
131
0 commit comments