Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[resource/device_posture_integration] Remove extra id parameters #1504

Merged
merged 2 commits into from
Mar 11, 2022

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Mar 10, 2022

the terraform-plugin-sdk adds the "id" to the schema when d.SetID is
used. therefore, there is no need to have this extra parameter in
the schema.

The use of this extra id is causing the pulumi schema to pull a
duplicate argument

sdk/python/pulumi_cloudflare/device_posture_integration.py:377: error: Duplicate argument "id" in function definition

the terraform-plugin-sdk adds the "id" to the schema when d.SetID is
used. therefore, there is no need to have this extra parameter in
the schema.

The use of this extra id is causing the pulumi schema to pull a
duplicate argument

```
sdk/python/pulumi_cloudflare/device_posture_integration.py:377: error: Duplicate argument "id" in function definition
```
@github-actions
Copy link
Contributor

Oops! It looks like no changelog entry is attached to this PR. Please include a release note as described in https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/docs/changelog-process.md.

Example:

```release-note:TYPE
Release note
```

If you do not require a release note to be included, please add the workflow/skip-changelog-entry label.

@jacobbednarz
Copy link
Member

i attempted to resolve this for you but your fork does not allow changes from maintainers. instead, here is a patch you can apply and we can get this merged.

From d100290c39f762b7943d429f480bd2e3cb7ff865 Mon Sep 17 00:00:00 2001
From: Jacob Bednarz <[email protected]>
Date: Fri, 11 Mar 2022 11:26:03 +1100
Subject: [PATCH] add CHANGELOG entry

---
 .changelog/1504.txt | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 .changelog/1504.txt

diff --git .changelog/1504.txt .changelog/1504.txt
new file mode 100644
index 00000000..8b156d0a
--- /dev/null
+++ .changelog/1504.txt
@@ -0,0 +1,3 @@
+```release-note:bug
+resource/cloudflare_device_posture_integration: remove superfluous `id` from schema
+```
--
2.33.0

feel free to use it or add your own commit addressing this.

@jacobbednarz jacobbednarz added the workflow/pending-op-response Indicates an issue or PR requires a response from the original poster. label Mar 11, 2022
@stack72
Copy link
Contributor Author

stack72 commented Mar 11, 2022

Thanks @jacobbednarz - I've just pushed this now - apologies for not having edits switched on on the branch!

@jacobbednarz jacobbednarz merged commit 9213b8c into cloudflare:master Mar 11, 2022
@jacobbednarz
Copy link
Member

np! thanks for the fix.

@jacobbednarz jacobbednarz removed the workflow/pending-op-response Indicates an issue or PR requires a response from the original poster. label Mar 11, 2022
@ingcrengifo
Copy link

Thanks for the fix!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants