Skip to content

Commit

Permalink
React to changes in pulumi SDK
Browse files Browse the repository at this point in the history
Avoid `Object of type ContextVar is not JSON serializable` exception
  • Loading branch information
justinvp committed Oct 3, 2022
1 parent 00551cd commit 27f50d6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/integration/runtime_data/policy-pack-python/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from pulumi import Config, get_project, get_stack
from pulumi.runtime import is_dry_run
from pulumi.runtime.config import CONFIG
from pulumi_aws import config as aws_config

from pulumi_policy import (
Expand Down Expand Up @@ -44,7 +43,6 @@ def verify_data(r):
assert get_stack() == r.props["getStack"]

# Verify Config
assert json.dumps(CONFIG, sort_keys=True) == json.dumps(dict(r.props["allConfig"]), sort_keys=True)
config = Config()
value = config.require("aConfigValue")
assert value == "this value is a value"
Expand Down

0 comments on commit 27f50d6

Please sign in to comment.