Maura Drabik11/06/2020, 3:50 PM
When I run this flow locally, setting the lifecycle parameter set to DEV it works as expected. However, on the cloud, it is only using the PROD secret. Any guidance on why this might be happening? I am positive the cloud secrets are all configured correctly and the issue seems to be with the IFELSE, MERGE Thanks in advance!
lifecycle = Parameter("lifecycle") true_branch = PrefectSecret("SCM_AUTOMATION_PROD") false_branch = PrefectSecret("SCM_AUTOMATION_DEV") ifelse(tasks.get_lifecycle(lifecycle), true_branch, false_branch) secrets = merge(true_branch, false_branch)
return the name of the secret you want and then call
and use that as the result