server: correctly set hostname
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
0c1383fd30
commit
9ec518491f
6 changed files with 129 additions and 11 deletions
|
@ -151,6 +151,7 @@ type Sandbox struct {
|
|||
privileged bool
|
||||
trusted bool
|
||||
resolvPath string
|
||||
hostnamePath string
|
||||
hostname string
|
||||
portMappings []*hostport.PortMapping
|
||||
stopped bool
|
||||
|
@ -301,6 +302,16 @@ func (s *Sandbox) ResolvPath() string {
|
|||
return s.resolvPath
|
||||
}
|
||||
|
||||
// AddHostnamePath adds the hostname path to the sandbox
|
||||
func (s *Sandbox) AddHostnamePath(hostname string) {
|
||||
s.hostnamePath = hostname
|
||||
}
|
||||
|
||||
// HostnamePath retrieves the hostname path from a sandbox
|
||||
func (s *Sandbox) HostnamePath() string {
|
||||
return s.hostnamePath
|
||||
}
|
||||
|
||||
// Hostname returns the hsotname of the sandbox
|
||||
func (s *Sandbox) Hostname() string {
|
||||
return s.hostname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue