Skip to content

Commit 6931a6b

Browse files
committed
Fixing issues with field setup in jopb invocation
1 parent 17e7eea commit 6931a6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Common/Commands.Common/AzureLongRunningJob.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ public static U CopyCmdlet<U>(U cmdlet) where U : AzurePSCmdlet
142142
property.SetValue(returnValue, property.GetValue(cmdlet));
143143
}
144144
}
145+
foreach (var field in returnType.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly))
146+
{
147+
field.SetValue(returnValue, field.GetValue(cmdlet));
148+
}
145149

146150
return returnValue as U;
147151
}

0 commit comments

Comments
 (0)