forked from TrueCloudLab/certificates
Add bastion to export.
This commit is contained in:
parent
0730a165fd
commit
07f7316851
1 changed files with 9 additions and 0 deletions
|
@ -63,6 +63,15 @@ func (a *Authority) Export() (c *config.Configuration, err error) {
|
|||
Key: mustMarshalToStruct(k),
|
||||
})
|
||||
}
|
||||
if b := v.Bastion; b != nil {
|
||||
c.Ssh.Bastion = &config.Bastion{
|
||||
Hostname: b.Hostname,
|
||||
User: b.User,
|
||||
Port: b.Port,
|
||||
Command: b.Command,
|
||||
Flags: b.Flags,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// KMS
|
||||
|
|
Loading…
Reference in a new issue