Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <[email protected]>
  • Loading branch information
stevekuznetsov committed Jun 6, 2024
1 parent 66ac257 commit c695ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cluster/core/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/none/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c695ed8

Please sign in to comment.