Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
forgot to store the new argument to the state
Browse files Browse the repository at this point in the history
  • Loading branch information
badarsebard committed Mar 3, 2022
1 parent c3df667 commit 1a803e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOSTNAME=local
NAMESPACE=badarsebard
NAME=xsoar
BINARY=terraform-provider-${NAME}
VERSION=0.3.13
VERSION=0.3.14
OS=${MY_OS}
ARCH=${MY_ARCH}

Expand Down
7 changes: 4 additions & 3 deletions xsoar/resource_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ func (r resourceHost) Create(ctx context.Context, req tfsdk.CreateResourceReques
Id: types.String{Value: hostId},
InstallationTimeout: plan.InstallationTimeout,
ExtraFlags: plan.ExtraFlags,
NFSMount: plan.NFSMount,
ServerUrl: plan.ServerUrl,
SSHUser: plan.SSHUser,
SSHKey: plan.SSHKey,
}

if host["host"].(string) != haGroupName.GetName() {
Expand All @@ -418,9 +422,6 @@ func (r resourceHost) Create(ctx context.Context, req tfsdk.CreateResourceReques
} else {
result.ElasticsearchUrl.Null = true
}
result.ServerUrl = plan.ServerUrl
result.SSHUser = plan.SSHUser
result.SSHKey = plan.SSHKey

// Generate resource state struct
diags = resp.State.Set(ctx, result)
Expand Down

0 comments on commit 1a803e7

Please sign in to comment.