From 9899a16116c9fcc01753d66d4e8a25bc18964176 Mon Sep 17 00:00:00 2001 From: Matthias Baur Date: Tue, 10 Dec 2024 15:06:53 +0100 Subject: [PATCH] Drop newClient --- provider.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/provider.go b/provider.go index 63f1d54..f9f43b8 100644 --- a/provider.go +++ b/provider.go @@ -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 @@ -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,