Skip to content

Commit

Permalink
Drop newClient
Browse files Browse the repository at this point in the history
  • Loading branch information
baurmatt committed Dec 10, 2024
1 parent 7b4fb49 commit 9899a16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ const MetadataKey = "fleeting-cluster"

var _ provider.InstanceGroup = (*InstanceGroup)(nil)

var newClient = openstackclient.New

type InstanceGroup struct {
Cloud string `json:"cloud"` // cloud to use
CloudsConfig string `json:"clouds_config"` // optional: path to clouds.yaml
Expand All @@ -48,7 +46,7 @@ func (g *InstanceGroup) Init(ctx context.Context, log hclog.Logger, settings pro
g.log.Debug("Initializing fleeting-plugin-openstack")

var err error
g.client, err = newClient(ctx, openstackclient.AuthConfig{
g.client, err = openstackclient.New(ctx, openstackclient.AuthConfig{
AuthFromEnv: g.AuthFromEnv,
Cloud: g.Cloud,
CloudsConfig: g.CloudsConfig,
Expand Down

0 comments on commit 9899a16

Please sign in to comment.