This message was deleted.
# python
s
This message was deleted.
b
@incalculable-whale-36468 your code is back to front, you need to do
my_template.format
inside the apply. something like:
Copy code
my_secret.apply(lambda current_secret: my_template.format(my_secret=my_template.format(current_secret)
i
I have tried that, but it did not work, I still got the output object. However, I did find a solution. This is the only way that worked:
Copy code
foo = Output.all(
    my_secret=my_secret
).apply(
    lambda output_args: my_template.format(my_secret=output_args['my_secret'])
)
I have no idea why apply would behave differently
b
@incalculable-whale-36468 what was your code before the
Output.all
?
f
Try to get it with
my_secret = config.require('my_secret')
. => use "require" instead of "require_secret"