Skip to content

Commit 3c3cd34

Browse files
authored
Merge pull request #186200 from mike-urnun-msft/patch-14
(Azure CXP) Fixes python samples
2 parents 02d76d5 + beed566 commit 3c3cd34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-functions/durable/durable-functions-bindings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ module.exports = df.orchestrator(function*(context) {
9393
import azure.durable_functions as df
9494

9595
def orchestrator_function(context: df.DurableOrchestrationContext):
96-
input_ = context.get_input()
96+
input = context.get_input()
9797
# Do some work
98-
return f"Hello {name}!"
98+
return f"Hello {input['name']}!"
9999

100100
main = df.Orchestrator.create(orchestrator_function)
101101
```
@@ -149,8 +149,8 @@ module.exports = df.orchestrator(function*(context) {
149149
import azure.durable_functions as df
150150

151151
def orchestrator_function(context: df.DurableOrchestrationContext):
152-
input_ = context.get_input()
153-
result = yield context.call_activity('SayHello', name)
152+
input = context.get_input()
153+
result = yield context.call_activity('SayHello', input['name'])
154154
return result
155155

156156
main = df.Orchestrator.create(orchestrator_function)

0 commit comments

Comments
 (0)