From 83c0657920e2780142ae3477de8d04ddd348e045 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Sat, 4 Jan 2020 15:23:57 +0100 Subject: [PATCH 1/2] Fix terraform example --- examples/quick-start/terraform-github/github.js | 7 +++++-- examples/quick-start/terraform-github/test.expected | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/examples/quick-start/terraform-github/github.js b/examples/quick-start/terraform-github/github.js index 8b6d9dce..43a599a5 100644 --- a/examples/quick-start/terraform-github/github.js +++ b/examples/quick-start/terraform-github/github.js @@ -11,13 +11,16 @@ const config = { provider: { github: { organization, + anonymous: true }, }, - github_membership: {}, + resource: { + github_membership: {}, + } }; for (const dev of developers) { - config.github_membership[membershipId(dev)] = { + config.resource.github_membership[membershipId(dev)] = { username: dev.github.handle, role: role(dev), }; diff --git a/examples/quick-start/terraform-github/test.expected b/examples/quick-start/terraform-github/test.expected index a6bc61d3..a9932cfa 100644 --- a/examples/quick-start/terraform-github/test.expected +++ b/examples/quick-start/terraform-github/test.expected @@ -1,14 +1,16 @@ "provider" "github" { "organization" = "myorg" + + "anonymous" = true } -"github_membership" "myorg_alice84" { +"resource" "github_membership" "myorg_alice84" { "username" = "alice84" "role" = "admin" } -"github_membership" "myorg_bob93" { +"resource" "github_membership" "myorg_bob93" { "username" = "bob93" "role" = "member" From 76e6aac86782c7805f71dee7492b6e86845d8719 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Sun, 5 Jan 2020 15:36:08 +0100 Subject: [PATCH 2/2] Fix esliint warnings --- examples/quick-start/terraform-github/github.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/quick-start/terraform-github/github.js b/examples/quick-start/terraform-github/github.js index 43a599a5..06571335 100644 --- a/examples/quick-start/terraform-github/github.js +++ b/examples/quick-start/terraform-github/github.js @@ -11,12 +11,12 @@ const config = { provider: { github: { organization, - anonymous: true + anonymous: true, }, }, resource: { github_membership: {}, - } + }, }; for (const dev of developers) {