Skip to content

Commit

Permalink
Merge pull request #209 from deploymenttheory/feat_intune_settings_te…
Browse files Browse the repository at this point in the history
…mplates

Feat intune settings templates
  • Loading branch information
ShocOne authored Nov 18, 2024
2 parents cbd3e7a + 756e3da commit 0612c82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: generate terraform docs

on:
pull_request:
branches:
push:
branches-ignore:
- main
paths-ignore:
- '.github/**/*'
Expand All @@ -24,13 +24,14 @@ jobs:

- uses: actions/checkout@v4.2.2
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: ${{ github.ref }}
# Creates provider documentation for registry.terraform.io
- name: Render terraform docs for microsoft365_graph
- name: Render terraform docs for microsoft365 graph v1.0 + beta
uses: terraform-docs/gh-actions@v1.3.0
with:
working-dir: examples/
find-dir: .
config-file: .terraform-docs.yml
find-dir: examples/
# recursive: true
indention: 3
output-file: README.md
output-method: inject
Expand Down
3 changes: 2 additions & 1 deletion internal/resources/_resource_template/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
graphmodels "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
)

func MapRemoteStateToTerraform(ctx context.Context, data *ResourceTemplateResourceModel, remoteResource graphmodels.DeviceAndAppManagementAssignmentFilterable) {
// mapRemoteStateToTerraform maps the remote state to the Terraform state
func mapRemoteStateToTerraform(ctx context.Context, data *ResourceTemplateResourceModel, remoteResource graphmodels.DeviceAndAppManagementAssignmentFilterable) {
if remoteResource == nil {
tflog.Debug(ctx, "Remote resource is nil")
return
Expand Down

0 comments on commit 0612c82

Please sign in to comment.