summaryrefslogtreecommitdiff
path: root/libpod/container_inspect.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/container_inspect.go')
-rw-r--r--libpod/container_inspect.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go
index bbfcd4446..0fdce13c0 100644
--- a/libpod/container_inspect.go
+++ b/libpod/container_inspect.go
@@ -30,18 +30,18 @@ func (c *Container) getContainerInspectData(size bool, driverData *inspect.Data)
}
resolvPath := ""
- if path, ok := c.state.BindMounts["/etc/resolv.conf"]; ok {
- resolvPath = path
+ if getPath, ok := c.state.BindMounts["/etc/resolv.conf"]; ok {
+ resolvPath = getPath
}
hostsPath := ""
- if path, ok := c.state.BindMounts["/etc/hosts"]; ok {
- hostsPath = path
+ if getPath, ok := c.state.BindMounts["/etc/hosts"]; ok {
+ hostsPath = getPath
}
hostnamePath := ""
- if path, ok := c.state.BindMounts["/etc/hostname"]; ok {
- hostnamePath = path
+ if getPath, ok := c.state.BindMounts["/etc/hostname"]; ok {
+ hostnamePath = getPath
}
data := &inspect.ContainerInspectData{