Skip to content

Commit

Permalink
config: Fix typo in function name
Browse files Browse the repository at this point in the history
There was an extra 'p' in addHypervisorVirtioFsOverrides.

Fixes: kata-containers#3004

Signed-off-by: Christophe de Dinechin <[email protected]>
  • Loading branch information
c3d committed Oct 9, 2020
1 parent 4b3ded1 commit a3e79cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtcontainers/pkg/oci/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func addHypervisorConfigOverrides(ocispec specs.Spec, config *vc.SandboxConfig,
return err
}

if err := addHypervisporVirtioFsOverrides(ocispec, config, runtime); err != nil {
if err := addHypervisorVirtioFsOverrides(ocispec, config, runtime); err != nil {
return err
}

Expand Down Expand Up @@ -683,7 +683,7 @@ func addHypervisorBlockOverrides(ocispec specs.Spec, sbConfig *vc.SandboxConfig)
return nil
}

func addHypervisporVirtioFsOverrides(ocispec specs.Spec, sbConfig *vc.SandboxConfig, runtime RuntimeConfig) error {
func addHypervisorVirtioFsOverrides(ocispec specs.Spec, sbConfig *vc.SandboxConfig, runtime RuntimeConfig) error {
if value, ok := ocispec.Annotations[vcAnnotations.SharedFS]; ok {
supportedSharedFS := []string{config.Virtio9P, config.VirtioFS}
valid := false
Expand Down

0 comments on commit a3e79cb

Please sign in to comment.