Skip to content

Commit

Permalink
🐛 import error (#187)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Theuermann <[email protected]>
  • Loading branch information
mati007thm authored Dec 16, 2024
1 parent 112773f commit 1e44b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions internal/provider/gql.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,6 @@ type MicrosoftDefenderConfigurationOptionsInput struct {
ClientId string
SubscriptionsAllowlist []string
SubscriptionsDenylist []string
Certificate string
ClientSecret string
}

type ClientIntegrationConfigurationOptions struct {
Expand All @@ -673,7 +671,7 @@ type ClientIntegrationConfigurationOptions struct {
JiraConfigurationOptions JiraConfigurationOptions `graphql:"... on JiraConfigurationOptions"`
EmailConfigurationOptions EmailConfigurationOptions `graphql:"... on EmailConfigurationOptions"`
GitlabConfigurationOptions GitlabConfigurationOptions `graphql:"... on GitlabConfigurationOptions"`
MicrosoftDefenderConfigurationOptionsInput MicrosoftDefenderConfigurationOptionsInput `graphql:"... on MicrosoftDefenderConfigurationOptionsInput"`
MicrosoftDefenderConfigurationOptionsInput MicrosoftDefenderConfigurationOptionsInput `graphql:"... on MicrosoftDefenderConfigurationOptions"`
// Add other configuration options here
}

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/integration_msdefender_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (r *integrationMsDefenderResource) ImportState(ctx context.Context, req res
SubscriptionAllowList: allowList,
SubscriptionDenyList: denyList,
Credential: integrationMsDefenderCredentialModel{
PEMFile: types.StringValue(integration.ConfigurationOptions.MicrosoftDefenderConfigurationOptionsInput.Certificate),
PEMFile: types.StringPointerValue(nil),
},
}

Expand Down

0 comments on commit 1e44b7e

Please sign in to comment.