Skip to content

Commit 6c92a83

Browse files
committed
removed mandatory parameter for invocation id
1 parent dd2920b commit 6c92a83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AzureFunctions.PowerShell.Durable.SDK.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,10 @@ function Start-DurableOrchestration {
135135

136136
function Get-TraceHeaders {
137137
param(
138-
[Parameter(Mandatory = $true)]
139138
[string] $InvocationId
140139
)
141140

142-
if ($null -eq $InvocationId) {
141+
if ($null -eq $InvocationId -or $InvocationId -eq "") {
143142
return @{} # Return an empty headers object
144143
}
145144

0 commit comments

Comments
 (0)