Skip to content

Commit 0ccc1d7

Browse files
committed
fix: corrected policy name variable
1 parent 7df20e2 commit 0ccc1d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ function Invoke-CIPPStandardIntuneTemplate {
3737

3838
Write-Host 'starting template deploy'
3939
Write-Host "The full settings are $($Settings | ConvertTo-Json)"
40-
$APINAME = 'Standards'
4140
foreach ($Template in $Settings) {
4241
Write-Host "working on template deploy: $($Template | ConvertTo-Json)"
4342
try {
@@ -53,7 +52,7 @@ function Invoke-CIPPStandardIntuneTemplate {
5352

5453
} catch {
5554
$ErrorMessage = Get-NormalizedError -Message $_.Exception.Message
56-
Write-LogMessage -API 'Standards' -tenant $tenant -message "Failed to create or update Intune Template $PolicyName, Error: $ErrorMessage" -sev 'Error'
55+
Write-LogMessage -API 'Standards' -tenant $tenant -message "Failed to create or update Intune Template $displayname, Error: $ErrorMessage" -sev 'Error'
5756
}
5857
}
5958
}

0 commit comments

Comments
 (0)