Skip to content

Commit

Permalink
Merge pull request #84 from vkareh/enforce-region
Browse files Browse the repository at this point in the history
Ensure region on cluster create, update SDK
  • Loading branch information
vkareh authored Aug 25, 2020
2 parents 875224c + d6a172d commit 03c3f28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func CreateCluster(client *cmv1.ClustersClient, config Spec) (*cmv1.Cluster, err

// Create the AWS client:
awsClient, err := aws.NewClient().
Region(config.Region).
Logger(logger).
Build()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/logging/ocm_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ func (l *OCMLogger) Debug(ctx context.Context, format string, args ...interface{
}

func (l *OCMLogger) Info(ctx context.Context, format string, args ...interface{}) {
l.logger.Infof(format, args...)
l.logger.Debugf(format, args...)
}

func (l *OCMLogger) Warn(ctx context.Context, format string, args ...interface{}) {
l.logger.Warnf(format, args...)
l.logger.Debugf(format, args...)
}

func (l *OCMLogger) Error(ctx context.Context, format string, args ...interface{}) {
Expand Down

0 comments on commit 03c3f28

Please sign in to comment.