Skip to content

Commit

Permalink
Fix bool Python providers opts (#1027)
Browse files Browse the repository at this point in the history
Several Python Provider opts were not being handled correctly. This
fix maps all of the opts to the correct k8s provider config, and handles
the boolean values correctly.
  • Loading branch information
lblackstone committed Mar 10, 2020
1 parent 6195579 commit 9c001ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Bug fixes

- Replace PersistentVolume if volume source changes. (https://github.com/pulumi/pulumi-kubernetes/pull/1015).
- Fix bool Python provider opts. (https://github.com/pulumi/pulumi-kubernetes/pull/1027).

## 1.5.6 (February 28, 2020)

Expand Down
6 changes: 3 additions & 3 deletions sdk/python/pulumi_kubernetes/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def __init__(self,
__props__ = {
"cluster": cluster,
"context": context,
"enableDryRun": "true" if enable_dry_run else "false",
"enableDryRun": enable_dry_run,
"kubeconfig": kubeconfig,
"namespace": namespace,
"suppress_deprecation_warnings": "true" if suppress_deprecation_warnings else "false",
"render_yaml_to_directory": render_yaml_to_directory,
"suppressDeprecationWarnings": suppress_deprecation_warnings,
"renderYamlToDirectory": render_yaml_to_directory,
}
super(Provider, self).__init__("kubernetes", __name__, __props__, __opts__)

0 comments on commit 9c001ff

Please sign in to comment.