Closed pulumi-bot closed 1 year ago
Looking good! No breaking changes found. No new resources/functions.
Maintainer note: consult the runbook for dealing with any breaking changes.
TypeError: __init__() got multiple values for argument 'resource_name'
Resources:
+ 11 to create
Something is not quite right with the latest version.
Summary of the problem:
The KafkaAcl
resource accepts a resourceName
input property.
When projected into the resource's __init__
in python, it is resource_name_
with the _
suffix, so that it doesn't conflict with the standard resource_name
arg that all python resources accept for the Pulumi resource name:
Standard resource_name
arg:
Input property resource_name_
with _
suffix:
And this is how resource_name_
passed to RegisterResource
:
The KafkaAclArgs
class on the other hand, doesn't have to use the _
suffix for resource_name
, because it doesn't otherwise have a conflicting resource_name
arg:
The problem comes in with the introduction of _configure
on KafkaAclArgs
. It's expecting a resource_name
keyword argument, but typically resource_name
isn't specified by keyword. In the example in this repo, it's just the first positional arg:
confluent.KafkaAcl(name,
And the resource_name_
won't be properly passed through to _configure
, because it's looking for a resource_name
keyword argument, not resource_name_
.
So anyway, upgrading to v3.91.1 pulumi codegen will get rid of _configure
, and the misguided https://github.com/pulumi/pulumi-confluentcloud/pull/247/commits/a0b619589a16632fcbf591c665d8401279c5bf0d commit in this PR is not necessary. The example should remain setting resource_name_
with the _
suffix.
This PR was generated via
$ upgrade-provider pulumi/pulumi-confluentcloud --kind=bridge --target-bridge-version=v3.63.1 --pr-reviewers=t0yv0 --pr-description=
.