This message was deleted.
s
This message was deleted.
l
You can merge multiple outputs into a single structured output, then apply them. I don't know the python syntax, but the TypeScript equivalent would be
Copy code
const airflowArgs = Output.all([
  airflowAddress,
  airFlowPassword
]).apply(([addr, pwd]) => return { // Building structured output here.
  address: addr,
  password: pwd
});
airflowArgs.apply(args => { // Applying structured output here, effectively translating positional args to named args.
  return {
    name: "AIRFLOW_CONN_METADATA_DB",
    value: `<postgres+psycopg2://airflow:{args.password}@{args.address}:5432/airflow>`
  };
});
You can do this in as small or large chunks as you like.
q
Hmm ok, that does look a lot better! I'll have to try it out in Python 🙂
Positional, unnamed args get a bit hairy past 2-3 of them 😂