mirror of
https://github.com/containers/podman.git
synced 2025-07-31 04:12:40 +08:00
Fix spelling "setup" -> "set up" and similar
* Replace "setup", "lookup", "cleanup", "backup" with "set up", "look up", "clean up", "back up" when used as verbs. Replace also variations of those. * Improve language in a few places. Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
This commit is contained in:
@ -518,7 +518,7 @@ func (c *Container) PortMappings() ([]types.PortMapping, error) {
|
||||
if len(c.config.NetNsCtr) > 0 {
|
||||
netNsCtr, err := c.runtime.GetContainer(c.config.NetNsCtr)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "unable to lookup network namespace for container %s", c.ID())
|
||||
return nil, errors.Wrapf(err, "unable to look up network namespace for container %s", c.ID())
|
||||
}
|
||||
return netNsCtr.PortMappings()
|
||||
}
|
||||
@ -657,7 +657,7 @@ func (c *Container) Hostname() string {
|
||||
utsNsCtr, err := c.runtime.GetContainer(c.config.UTSNsCtr)
|
||||
if err != nil {
|
||||
// should we return an error here?
|
||||
logrus.Errorf("unable to lookup uts namespace for container %s: %v", c.ID(), err)
|
||||
logrus.Errorf("unable to look up uts namespace for container %s: %v", c.ID(), err)
|
||||
return ""
|
||||
}
|
||||
return utsNsCtr.Hostname()
|
||||
|
Reference in New Issue
Block a user