Enable resource references by default (#6202)

This commit is contained in:
Justin Van Patten 2021-01-27 13:25:26 -08:00 committed by GitHub
parent d72b788011
commit b3d11e1c32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -24,6 +24,9 @@ CHANGELOG
- [CLI] Avoid panic for diffs with invalid property paths.
[#6159](https://github.com/pulumi/pulumi/pull/6159)
- Enable resource reference feature by default.
[#6202](https://github.com/pulumi/pulumi/pull/6202)
## 2.18.1 (2021-01-21)
- Revert [#6125](https://github.com/pulumi/pulumi/pull/6125) as it caused a which introduced a bug with serializing resource IDs

View file

@ -72,11 +72,7 @@ func disableProviderPreview() bool {
}
func disableResourceReferences() bool {
// Allow the resource reference feature to be enabled by explicitly setting an env var.
if v, ok := os.LookupEnv("PULUMI_ENABLE_RESOURCE_REFERENCES"); ok && cmdutil.IsTruthy(v) {
return false
}
return true
return cmdutil.IsTruthy(os.Getenv("PULUMI_DISABLE_RESOURCE_REFERENCES"))
}
// skipConfirmations returns whether or not confirmation prompts should