Add PWD_HOST_FQDN env variable to instances.

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-06-14 19:02:07 -03:00
parent fa275b8ef4
commit 8f247794bb
4 changed files with 7 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ type InstanceConfig struct {
CACert []byte
Cert []byte
Key []byte
Host string
}
func (i *Instance) setUsedPort(port uint16) {
@@ -223,6 +224,7 @@ func (p *pwd) InstanceNew(session *Session, conf InstanceConfig) (*Instance, err
ServerKey: conf.ServerKey,
CACert: conf.CACert,
Privileged: false,
HostFQDN: conf.Host,
}
for _, imageName := range p.InstanceAllowedImages() {