Skip to content

Commit

Permalink
Merge pull request #18 from gavsto/dev
Browse files Browse the repository at this point in the history
FIX: Added fix to creation of cache folder
  • Loading branch information
gavsto authored Oct 26, 2021
2 parents ac029c4 + fa429c0 commit 638606a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BestPracticeAnalyser_List/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Log-Request -user $request.headers.'x-ms-client-principal' -API $APINAME -messa
Write-Host "PowerShell HTTP trigger function processed a request."

# Get all the things
$Results = Get-ChildItem ".\Cache_BestPracticeAnalyser\*.json" | %{Get-Content $_.FullName | Out-String | ConvertFrom-Json}
$Results = Get-ChildItem ".\Cache_BestPracticeAnalyser\*.json" | ForEach-Object{Get-Content $_.FullName | Out-String | ConvertFrom-Json}

# Associate values to output bindings by calling 'Push-OutputBinding'.
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
Expand Down
2 changes: 2 additions & 0 deletions BestPracticeAnalyser_Orchestration/run.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
param($Context)

Log-request -API "BestPracticeAnalyser" -tenant $tenant -message "Best Practice Analyser has Started" -sev Info
New-Item "Cache_BestPracticeAnalyser" -ItemType Directory -ErrorAction SilentlyContinue

$Batch = (Invoke-ActivityFunction -FunctionName 'BestPracticeAnalyser_GetQueue' -Input 'LetsGo')
$ParallelTasks = foreach ($Item in $Batch) {
Expand All @@ -12,6 +13,7 @@ $Outputs = Wait-ActivityFunction -Task $ParallelTasks
foreach ($item in $Outputs) {
write-host $Item | Out-String
$Object = $Item | ConvertTo-Json

Set-Content "Cache_BestPracticeAnalyser\$($item.tenant).BestPracticeAnalysis.json" -Value $Object -Force
}

Expand Down
2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.2
1.1.3

0 comments on commit 638606a

Please sign in to comment.