Skip to content

Commit

Permalink
ci: fix Python test by using a non-structural resource
Browse files Browse the repository at this point in the history
Fixes #98

The ACL resource is what Pulumi would consider a "structural resource", see:
- pulumi/pulumi#918

This kind of resource is not quite correctly handled in the object model, and
this interacts poorly with the upstream provider requiring the ACL to exactly
match the default for "create" to succeed.

It's a reasonable safety precaution of the upstream provider, so it's better to
work around that by using a regular resource in the test.
  • Loading branch information
AaronFriel committed Jan 24, 2023
1 parent 7081eb4 commit ff256bf
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions examples/py-acl/__main__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
"""A Python Pulumi program"""

import json
import pulumi_tailscale as tailscale

acl = tailscale.Acl("demo-py",
acl=json.dumps({
"ACLs": [{
"action": "accept",
"users": ["*"],
"ports": ["*:*"],
}]
}))

tailscale.TailnetKey("demo-py")

0 comments on commit ff256bf

Please sign in to comment.