summaryrefslogtreecommitdiff
path: root/libpod/network/files.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-22 16:56:43 -0500
committerGitHub <noreply@github.com>2021-02-22 16:56:43 -0500
commitd999328920ce826e5d1ef824c811374bb65ce26b (patch)
tree12952a1caffc6e2bfae40ec17ff36a66521b16d3 /libpod/network/files.go
parentc69decc305d746066824701ff073d5b34b744693 (diff)
parent9d818be7329929b05b93e432c408ee65726ec2c0 (diff)
downloadpodman-d999328920ce826e5d1ef824c811374bb65ce26b.tar.gz
podman-d999328920ce826e5d1ef824c811374bb65ce26b.tar.bz2
podman-d999328920ce826e5d1ef824c811374bb65ce26b.zip
Merge pull request #9455 from Luap99/fix-network-ids
Fix podman network IDs handling
Diffstat (limited to 'libpod/network/files.go')
-rw-r--r--libpod/network/files.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/network/files.go b/libpod/network/files.go
index f869d32c3..fe483e25c 100644
--- a/libpod/network/files.go
+++ b/libpod/network/files.go
@@ -81,9 +81,9 @@ func GetCNIConfigPathByNameOrID(config *config.Config, name string) (string, err
return "", errors.Wrap(define.ErrNoSuchNetwork, fmt.Sprintf("unable to find network configuration for %s", name))
}
-// ReadRawCNIConfByName reads the raw CNI configuration for a CNI
+// ReadRawCNIConfByNameOrID reads the raw CNI configuration for a CNI
// network by name
-func ReadRawCNIConfByName(config *config.Config, name string) ([]byte, error) {
+func ReadRawCNIConfByNameOrID(config *config.Config, name string) ([]byte, error) {
confFile, err := GetCNIConfigPathByNameOrID(config, name)
if err != nil {
return nil, err