1.2.0
This commit is contained in:
@@ -5,11 +5,11 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/hashicorp/terraform-plugin-log/tflog"
|
||||
decort "repository.basistech.ru/BASIS/decort-golang-sdk"
|
||||
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/stack"
|
||||
"repository.basistech.ru/BASIS/terraform-provider-dynamix/internal/client"
|
||||
)
|
||||
|
||||
func StackDataSourceCheckPresence(ctx context.Context, stackID uint64, c *decort.DecortClient) (*stack.InfoStack, error) {
|
||||
func StackDataSourceCheckPresence(ctx context.Context, stackID uint64, c *client.Client) (*stack.InfoStack, error) {
|
||||
tflog.Info(ctx, fmt.Sprintf("StackDataSourceCheckPresence: Get info about stack with ID - %v", stackID))
|
||||
|
||||
record, err := c.CloudBroker().Stack().Get(ctx, stack.GetRequest{StackId: stackID})
|
||||
|
||||
@@ -5,12 +5,12 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/hashicorp/terraform-plugin-log/tflog"
|
||||
decort "repository.basistech.ru/BASIS/decort-golang-sdk"
|
||||
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/stack"
|
||||
"repository.basistech.ru/BASIS/terraform-provider-dynamix/internal/client"
|
||||
"repository.basistech.ru/BASIS/terraform-provider-dynamix/internal/service/cloudbroker/stack/models"
|
||||
)
|
||||
|
||||
func StackListDataSourceCheckPresence(ctx context.Context, plan *models.DataSourceStackListModel, c *decort.DecortClient) (*stack.ListStacks, error) {
|
||||
func StackListDataSourceCheckPresence(ctx context.Context, plan *models.DataSourceStackListModel, c *client.Client) (*stack.ListStacks, error) {
|
||||
tflog.Info(ctx, "StackListDataSourceCheckPresence: Get info about list stacks")
|
||||
req := stack.ListRequest{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user