summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2022-03-23 11:04:11 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2022-03-24 11:02:41 +0100
commit809f82bdbd441d602e584b1c9c2b5597a739b10e (patch)
tree7216d5bd8b49e94b8e7bcda882014df4a2d56f4b /pkg/specgen/generate
parent80123ca505081fca513fc0865cf6e2daf43ff854 (diff)
downloadpodman-809f82bdbd441d602e584b1c9c2b5597a739b10e.tar.gz
podman-809f82bdbd441d602e584b1c9c2b5597a739b10e.tar.bz2
podman-809f82bdbd441d602e584b1c9c2b5597a739b10e.zip
specgen: fix typo
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r--pkg/specgen/generate/container.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/specgen/generate/container.go b/pkg/specgen/generate/container.go
index 64669f34d..0e9d33dd8 100644
--- a/pkg/specgen/generate/container.go
+++ b/pkg/specgen/generate/container.go
@@ -338,8 +338,8 @@ func FinishThrottleDevices(s *specgen.SpecGenerator) error {
}
// ConfigToSpec takes a completed container config and converts it back into a specgenerator for purposes of cloning an exisiting container
-func ConfigToSpec(rt *libpod.Runtime, specg *specgen.SpecGenerator, contaierID string) (*libpod.Container, error) {
- c, err := rt.LookupContainer(contaierID)
+func ConfigToSpec(rt *libpod.Runtime, specg *specgen.SpecGenerator, containerID string) (*libpod.Container, error) {
+ c, err := rt.LookupContainer(containerID)
if err != nil {
return nil, err
}