Skip to content

Commit

Permalink
Merge branch 'KelvinTegelaar:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
UnlawfulMonad authored Oct 13, 2023
2 parents 1834c2c + cddb852 commit d2d5a50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Modules/CippExtensions/Private/Get-HaloToken.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ function Get-HaloToken {
client_secret = (Get-AzKeyVaultSecret -VaultName $ENV:WEBSITE_DEPLOYMENT_ID -Name 'HaloPSA' -AsPlainText)
scope = 'all'
}
if ($Configuration.tenant) { $Tenant = "?tenant=$($Configuration.tenant)"}
if (![string]::IsNullOrEmpty($Configuration.tenant)) { $Tenant = "?tenant=$($Configuration.tenant)" }
$token = Invoke-RestMethod -Uri "$($Configuration.AuthURL)/token$Tenant" -Method Post -Body $body -ContentType 'application/x-www-form-urlencoded'
return $token
} else {
}
else {
throw 'No Halo configuration'
}
}
2 changes: 1 addition & 1 deletion Scheduler_CIPPNotifications/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ if ($config.sendtoIntegration) {
}
catch {
Write-Host "Could not send alerts to ticketing system: $($_.Exception.message)"
Write-LogMessage -API 'Alerts' -tenant $Tenant -message "Could not send alerts to : $($_.Exception.message)" -sev info
Write-LogMessage -API 'Alerts' -tenant $Tenant -message "Could not send alerts to ticketing system: $($_.Exception.message)" -sev info
}
}

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

0 comments on commit d2d5a50

Please sign in to comment.