feat(dev): create initial alias targets for boundary dev (#4433)
* feat(dev): create initial alias targets for boundary dev
This commit is contained in:
1 parent
48d958e395
commit
e80e9a6da5
6 files changed
+239
-17
No files matched your search
@@ -190,6 +190,11 @@ func (b *Server) CreateDevDatabase(ctx context.Context, opt ...Option) error {
|
||||
if _, err := b.CreateInitialTargetWithHostSources(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
if !b.SkipAliasTargetCreation {
|
||||
if err := b.CreateInitialTargetsWithAlias(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// now that we have passed all the error cases, reset c to be a noop so the
|
||||
// defer doesn't do anything.
|
||||
|
||||
Reference in new issue
Block a user