Closed zbuchheit closed 1 week ago
Thanks for the report and the repro here @zbuchheit!
I've had an initial look at this and have confirmed your observations about the lack of diff there.
Interestingly if I change another property on the resource the diff is correctly shown:
~ meraki:networks/vlanProfiles:VlanProfiles: (update)
[id=L_686235993220612994]
[urn=urn:pulumi:dev::meraki_97::meraki:networks/vlanProfiles:VlanProfiles::vlan-profiles]
[provider=urn:pulumi:dev::meraki_97::pulumi:providers:meraki::default_0_2_5_github_/api.github.com/pulumi/pulumi-meraki::e43ebd02-182f-448b-9005-34cfdff6efd8]
~ iname : "Default" => "Default1"
~ vlanNames: [
[0]: {
name : "default"
vlanId: "1"
}
+ [1]: {
+ name : "guest"
+ vlanId: "2"
}
+ [2]: {
+ name : "voice"
+ vlanId: "3"
}
]
GRPC logs:
This certainly looks like a bridge issue - the change seems to be very much ignored here.
A workaround here would be to update another property along with the vlanNames, run up and revert the other change.
Confirmed this does not repro in TF:
But it looks as if the TF plan is returning the wrong planned state (but it's likely on our side, as this does not repro in TF)
Built out a repro in the bridge: https://github.com/pulumi/pulumi-terraform-bridge/pull/2168
Opened https://github.com/pulumi/pulumi-terraform-bridge/issues/2170 for the bridge bug, will continue the investigation there.
Update here, this looks like an issue in the bridge internals and it doesn't look pretty. We seem to be mishandling Computed set nested values in the PF bridge.
This issue has been addressed in PR #109 and shipped in release v0.2.6.
I am still seeing this behavior in v0.2.6, I recommend we re-open this issue
confirmed this is resolved and we can close
Describe what happened
Whe attempting to use the
meraki.networks.VlanProfiles
resource, it is not correctly detecting a diff on the vlanNames field for the resource when there is a change. I am able to import the resource, add a field tovlanNames
, and expect a diff but pulumi shows no changes. The equivalent in TF using the upstream provider works fine.Sample program
I can provide a full example on a call but essentially the resource looks like the following
Log output
N/A
Affected Resource(s)
No response
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).