Maura Drabik
11/06/2020, 3:50 PMlifecycle = 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)
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!Dylan
tasks.get_lifecycle(lifecycle)
return?tasks.get_lifecycle()
return the name of the secret you want and then call PrefectSecret(secret_name)
and use that as the result