https://pulumi.com logo
#python
Title
# python
a

average-school-38756

09/25/2020, 9:24 PM
Any reason a policy violation wouldn't be printed to the
pulumi preview
output? i ran
pulumi preview --policy-pack my-pack --policy-pack-config my-config.json
, i see the pack named under "Policy Packs run", and i know
report_violation("my message")
was executed because i stepped through it in the debugger. This is with a custom Python pack i started writing. Running against an AWSGuard TypeScript policy does show policy violations.
g

gentle-diamond-70147

09/27/2020, 7:54 PM
I've not seen this before in my experience and I use policy packs a lot. If you could put together a small project that reproduces this and open an issue at https://github.com/pulumi/pulumi-policy, that would be great!
a

average-school-38756

09/28/2020, 6:51 PM
My best guess is that i was overlooking an error message in Diagnostics, because it's working today