Propagate additionalSecretOutputs opt to Read in NodeJS (#4307)

This commit is contained in:
Levi Blackstone 2020-04-06 15:50:52 -06:00 committed by GitHub
parent ab659aa0c1
commit d363be9de0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,9 @@ CHANGELOG
=========
## HEAD (unreleased)
- Propagate `additionalSecretOutputs` opt to Read in NodeJS.
[#4307](https://github.com/pulumi/pulumi/pull/4307)
- Fix handling of `nil` values in Outputs in Go.
[#4268](https://github.com/pulumi/pulumi/pull/4268)

View file

@ -117,6 +117,7 @@ export function readResource(res: Resource, t: string, name: string, props: Inpu
req.setDependenciesList(Array.from(resop.allDirectDependencyURNs));
req.setVersion(opts.version || "");
req.setAcceptsecrets(true);
req.setAdditionalsecretoutputsList((<any>opts).additionalSecretOutputs || []);
// Now run the operation, serializing the invocation if necessary.
const opLabel = `monitor.readResource(${label})`;