summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Rabson <dfr@rabson.org>2022-06-27 08:11:19 +0100
committerDoug Rabson <dfr@rabson.org>2022-06-27 12:57:44 +0100
commit4c5788bac6d57ced3498ea54100c924592596dab (patch)
tree402baec17255cca9b370e5c424e815b41188356d
parent5902905970b56ad843311cba32f803404819f592 (diff)
downloadpodman-4c5788bac6d57ced3498ea54100c924592596dab.tar.gz
podman-4c5788bac6d57ced3498ea54100c924592596dab.tar.bz2
podman-4c5788bac6d57ced3498ea54100c924592596dab.zip
Fix spelling of GetCriuVersion
Signed-off-by: Doug Rabson <dfr@rabson.org>
-rw-r--r--libpod/container_internal_linux.go2
-rw-r--r--pkg/criu/criu_linux.go2
-rw-r--r--pkg/criu/criu_unsupported.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index 77b598b16..2dbf1b5c6 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -1141,7 +1141,7 @@ func (c *Container) addCheckpointImageMetadata(importBuilder *buildah.Builder) e
return fmt.Errorf("getting host info: %v", err)
}
- criuVersion, err := criu.GetCriuVestion()
+ criuVersion, err := criu.GetCriuVersion()
if err != nil {
return fmt.Errorf("getting criu version: %v", err)
}
diff --git a/pkg/criu/criu_linux.go b/pkg/criu/criu_linux.go
index 1d4c0a782..c28e23fd7 100644
--- a/pkg/criu/criu_linux.go
+++ b/pkg/criu/criu_linux.go
@@ -38,7 +38,7 @@ func MemTrack() bool {
return *features.MemTrack
}
-func GetCriuVestion() (int, error) {
+func GetCriuVersion() (int, error) {
c := criu.MakeCriu()
return c.GetCriuVersion()
}
diff --git a/pkg/criu/criu_unsupported.go b/pkg/criu/criu_unsupported.go
index 464c09908..437482a0e 100644
--- a/pkg/criu/criu_unsupported.go
+++ b/pkg/criu/criu_unsupported.go
@@ -11,6 +11,6 @@ func MemTrack() bool {
return false
}
-func GetCriuVestion() (int, error) {
+func GetCriuVersion() (int, error) {
return MinCriuVersion, nil
}