Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#441 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
Dev to hotfix
  • Loading branch information
KelvinTegelaar authored Oct 13, 2023
2 parents 44713d9 + 09c9021 commit cddb852
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 cddb852

Please sign in to comment.