File tree Expand file tree Collapse file tree
src/VirtualClient/VirtualClient.Actions/ScriptExecutor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 2.1.19
1+ 2.1.20
Original file line number Diff line number Diff line change @@ -314,15 +314,10 @@ private async Task RequestUploadAndMoveToLogsDirectory(
314314 return ;
315315 }
316316
317- if ( this . TryGetContentStoreManager ( out IBlobManager blobManager ) )
318- {
319- await this . RequestUpload ( sourcePath ) ;
320- }
321-
317+ string destPath = sourcePath ;
322318 await ( this . FileOperationsRetryPolicy ?? Policy . NoOpAsync ( ) ) . ExecuteAsync ( ( ) =>
323319 {
324320 string fileName = Path . GetFileName ( sourcePath ) ;
325- string destPath ;
326321
327322 if ( ! string . IsNullOrEmpty ( sourceRoot ) )
328323 {
@@ -344,6 +339,11 @@ private async Task RequestUploadAndMoveToLogsDirectory(
344339 this . fileSystem . File . Move ( sourcePath , destPath , true ) ;
345340 return Task . CompletedTask ;
346341 } ) ;
342+
343+ if ( this . TryGetContentStoreManager ( out IBlobManager blobManager ) )
344+ {
345+ await this . RequestUpload ( destPath ) ;
346+ }
347347 }
348348 }
349349}
You can’t perform that action at this time.
0 commit comments