File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed
Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,12 @@ Function New-O365Object{
306306 throw (" {0} diagnostic settings file does not exists" -f $json_path )
307307 }
308308 $diag_settings_json = (Get-Content $json_path - Raw) | ConvertFrom-Json
309+ # Get L2Extensions
310+ $json_path = (" {0}/core/utils/extensions/l2extensions.json" -f $ScriptPath )
311+ If (! (Test-Path - Path $json_path )){
312+ throw (" {0} l2 extensions file was not found" -f $json_path )
313+ }
314+ $l2Extensions = (Get-Content $json_path - Raw) | ConvertFrom-Json
309315 # ########### Get Ruleset info ################
310316 $ruleSet = $rulesPath = $null ;
311317 # Get ruleset
@@ -475,7 +481,7 @@ Function New-O365Object{
475481 MaxQueue = $internal_config_json.performance.nestedRunspaces.MaxQueue ;
476482 nestedRunspaces = @ {
477483 BatchSleep = ($internal_config_json.performance.BatchSleep * 2 );
478- BatchSize = ($internal_config_json.performance.BatchSize * 2 );
484+ BatchSize = ($internal_config_json.performance.BatchSize / 2 );
479485 MaxQueue = $internal_config_json.performance.nestedRunspaces.MaxQueue ;
480486 }
481487 nestedRunspaceMaxThreads = $nestedMaxThreads ;
@@ -490,6 +496,7 @@ Function New-O365Object{
490496 ruleset = $ruleSet ;
491497 rulesPath = $rulesPath ;
492498 Compress = $MyParams.Compress ;
499+ l2Extensions = $l2Extensions ;
493500 }
494501 # Create new object
495502 $MonkeyObj = New-Object - TypeName PSCustomObject - Property $tmp_object
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments