From c695ed816dd7f39feba8a3facf8b8c6db574f959 Mon Sep 17 00:00:00 2001 From: Steve Kuznetsov Date: Thu, 6 Jun 2024 10:12:41 -0600 Subject: [PATCH] work Signed-off-by: Steve Kuznetsov --- cmd/cluster/core/create.go | 2 +- cmd/cluster/none/create.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cluster/core/create.go b/cmd/cluster/core/create.go index dcb7044bab0..6aecb2fee2e 100644 --- a/cmd/cluster/core/create.go +++ b/cmd/cluster/core/create.go @@ -625,7 +625,7 @@ func CreateCluster(ctx context.Context, opts *CreateOptions, platform Platform) }() } for _, object := range resources.asObjects() { - err := hyperapi.YamlSerializer.Encode(object, os.Stdout) + err := hyperapi.YamlSerializer.Encode(object, output) if err != nil { return fmt.Errorf("failed to encode objects: %w", err) } diff --git a/cmd/cluster/none/create.go b/cmd/cluster/none/create.go index d92268cb934..16be8ff88b0 100644 --- a/cmd/cluster/none/create.go +++ b/cmd/cluster/none/create.go @@ -21,7 +21,7 @@ func (o *CreateOptions) Validate(ctx context.Context, opts *core.CreateOptions) func (o *CreateOptions) Complete(ctx context.Context, opts *core.CreateOptions) error { var err error - if o.APIServerAddress == "" { + if o.APIServerAddress == "" && !o.ExposeThroughLoadBalancer { o.APIServerAddress, err = core.GetAPIServerAddressByNode(ctx, opts.Log) } return err