Skip to content

Commit

Permalink
Merge pull request #1155 from JohnDuprey/dev
Browse files Browse the repository at this point in the history
bugfixes
  • Loading branch information
JohnDuprey authored Oct 16, 2024
2 parents 0a950f4 + 3b28e7d commit 205453d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ function Push-CIPPStandard {
$Item
)

Write-Host "Received queue item for $($Item.Tenant) and standard $($Item.Standard)."
Write-Information "Received queue item for $($Item.Tenant) and standard $($Item.Standard)."
$Tenant = $Item.Tenant
$Standard = $Item.Standard
$FunctionName = 'Invoke-CIPPStandard{0}' -f $Standard
Write-Host "We'll be running $FunctionName"
$Rerun = Test-CIPPRerun -Type Standard -Tenant $Tenant -Settings $Item.Settings -API $Standard
Write-Information "We'll be running $FunctionName"
$Rerun = Test-CIPPRerun -Type Standard -Tenant $Tenant -API $Standard
if ($Rerun) {
Write-Host 'Detected rerun. Exiting cleanly'
Write-Information 'Detected rerun. Exiting cleanly'
exit 0
} else {
Write-Host "Rerun is set to false. We'll be running $FunctionName"
Write-Information "Rerun is set to false. We'll be running $FunctionName"
}
try {
& $FunctionName -Tenant $Item.Tenant -Settings $Item.Settings -ErrorAction Stop
Expand Down
2 changes: 1 addition & 1 deletion Modules/CIPPCore/Public/GraphHelper/Get-Tenants.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,5 @@ function Get-Tenants {
}
}

return ($IncludedTenantsCache | Where-Object { $null -ne $_.defaultDomainName -and ($_.defaultDomainName -notmatch 'Domain Error' -or $IncludeAll.IsPresent) } | Sort-Object -Property displayName)
return ($IncludedTenantsCache | Where-Object { $null -ne $_.defaultDomainName -and ($_.defaultDomainName -notmatch 'Domain Error' -or $IncludeAll.IsPresent) -and $IncludedTenantFilter } | Sort-Object -Property displayName)
}

0 comments on commit 205453d

Please sign in to comment.