aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index d434630a3..858cf3cbe 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -424,7 +424,7 @@ func (c *Container) WriteStringToRundir(destFile, output string) (string, error)
return destFileName, nil
}
-type resolv struct {
+type resolvConf struct {
nameServers []string
searchDomains []string
options []string
@@ -477,8 +477,8 @@ func (c *Container) generateResolvConf() (string, error) {
}
// createResolv creates a resolv struct from an input string
-func createResolv(input string) resolv {
- var resolv resolv
+func createResolv(input string) resolvConf {
+ var resolv resolvConf
for _, line := range strings.Split(input, "\n") {
if strings.HasPrefix(line, "search") {
fields := strings.Fields(line)
@@ -507,7 +507,7 @@ func createResolv(input string) resolv {
}
//ToString returns a resolv struct in the form of a resolv.conf
-func (r resolv) ToString() string {
+func (r resolvConf) ToString() string {
var result string
// Populate the output string with search domains
result += fmt.Sprintf("search %s\n", strings.Join(r.searchDomains, " "))