Skip to content

Commit 491dbf2

Browse files
committedNov 1, 2024
feat: add WorkflowV2Client to Terraform utils
1 parent b46d073 commit 491dbf2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎terraform/auth/config.go

+4
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,10 @@ func (c *Config) KeyManagerV1Client(ctx context.Context, region string) (*gopher
440440
return c.CommonServiceClientInit(ctx, openstack.NewKeyManagerV1, region, "key-manager")
441441
}
442442

443+
func (c *Config) WorkflowV2Client(ctx context.Context, region string) (*gophercloud.ServiceClient, error) {
444+
return c.CommonServiceClientInit(ctx, openstack.NewWorkflowV2, region, "workflowv2")
445+
}
446+
443447
// A wrapper to determine if logging in gophercloud should be enabled, with a fallback
444448
// to the OS_DEBUG environment variable when no explicit configuration is passed.
445449
func enableLogging(enable bool) bool {

0 commit comments

Comments
 (0)