Skip to content

Commit

Permalink
Merge #11636
Browse files Browse the repository at this point in the history
11636: Fix Python codegen for secret() intrinsic r=AaronFriel a=AaronFriel

Fixes #11632 

Co-authored-by: Aaron Friel <mayreply@aaronfriel.com>
  • Loading branch information
bors[bot] and AaronFriel committed Dec 12, 2022
2 parents 761f98b + 4840af7 commit 67bfadb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/codegen/python/gen_program_expressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func (g *generator) GenFunctionCallExpression(w io.Writer, expr *model.FunctionC
case "readDir":
g.Fgenf(w, "os.listdir(%.v)", expr.Args[0])
case "secret":
g.Fgenf(w, "pulumi.secret(%v)", expr.Args[0])
g.Fgenf(w, "pulumi.Output.secret(%v)", expr.Args[0])
case "split":
g.Fgenf(w, "%.16v.split(%.v)", expr.Args[1], expr.Args[0])
case "toBase64":
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pulumi
import pulumi_aws as aws

db_cluster = aws.rds.Cluster("dbCluster", master_password=pulumi.secret("foobar"))
db_cluster = aws.rds.Cluster("dbCluster", master_password=pulumi.Output.secret("foobar"))
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
resource_group_name=appservicegroup.name,
account_name=sa.name,
public_access=azure_native.storage.PublicAccess.NONE)
blob_access_token = pulumi.secret(pulumi.Output.all(sa.name, appservicegroup.name, sa.name, container.name).apply(lambda saName, appservicegroupName, saName1, containerName: azure_native.storage.list_storage_account_service_sas_output(account_name=sa_name,
blob_access_token = pulumi.Output.secret(pulumi.Output.all(sa.name, appservicegroup.name, sa.name, container.name).apply(lambda saName, appservicegroupName, saName1, containerName: azure_native.storage.list_storage_account_service_sas_output(account_name=sa_name,
protocols=azure_native.storage.HttpProtocol.HTTPS,
shared_access_start_time="2022-01-01",
shared_access_expiry_time="2030-01-01",
Expand Down

0 comments on commit 67bfadb

Please sign in to comment.