Skip to content

Commit 6cd233d

Browse files
authored
Merge pull request #1760 from kris6673/fix-CIPPAlertOneDriveQuota
Fix: hashtable alert errors for CIPPAlertOneDriveQuota
2 parents 1bc2f4b + 4820ac2 commit 6cd233d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Modules/CIPPCore/Public/Alerts/Get-CIPPAlertOnedriveQuota.ps1

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@ function Get-CIPPAlertOneDriveQuota {
3333
if ($UsagePercent -gt $InputValue) {
3434
$GBLeft = [math]::Round(($_.storageAllocatedInBytes - $_.storageUsedInBytes) / 1GB)
3535
[PSCustomObject]@{
36-
Details = @{
37-
Message = "$($_.ownerPrincipalName): OneDrive is $UsagePercent% full. OneDrive has $($GBLeft)GB storage left"
38-
Owner = $_.ownerPrincipalName
39-
UsagePercent = $UsagePercent
40-
GBLeft = $GBLeft
41-
StorageUsedInBytes = $_.storageUsedInBytes
42-
StorageAllocatedInBytes = $_.storageAllocatedInBytes
43-
Tenant = $TenantFilter
44-
}
36+
Message = "$($_.ownerPrincipalName): OneDrive is $UsagePercent% full. OneDrive has $($GBLeft)GB storage left"
37+
Owner = $_.ownerPrincipalName
38+
UsagePercent = $UsagePercent
39+
GBLeft = $GBLeft
40+
StorageUsedInBytes = $_.storageUsedInBytes
41+
StorageAllocatedInBytes = $_.storageAllocatedInBytes
42+
Tenant = $TenantFilter
4543
}
4644
}
4745

0 commit comments

Comments
 (0)