From 07f7316851117a8aa4245e92c5385781a8554f78 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 27 Jul 2021 19:22:29 -0700 Subject: [PATCH] Add bastion to export. --- authority/export.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/authority/export.go b/authority/export.go index 316ede0e..4c5059ea 100644 --- a/authority/export.go +++ b/authority/export.go @@ -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