Skip to content

Commit

Permalink
companyName should be filled in if it is not assigned in parameter (#…
Browse files Browse the repository at this point in the history
…3293)

@freddydk Added filling in companyName no matter if it is added as
parameter in Publish-PerTenantExtensionApps.ps1. Empty companyName could
give issues, so in my opinion it should be not empty. Before the change
if someone don't add the parameter then the next line of code:
`Write-Host "Company '$companyName' has id $companyId"`
is missing companyName.

Co-authored-by: Marek Busse <marek.busse@cepheo.com>
  • Loading branch information
bussik and Marek Busse committed Jan 10, 2024
1 parent 9ab94f4 commit 154af25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Saas/Publish-PerTenantExtensionApps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ try {
throw "No company $companyName"
}
$companyId = $company.id
if ($companyName -eq "") {
$companyName = $company.name
}
Write-Host "Company '$companyName' has id $companyId"

Write-Host "$automationApiUrl/companies($companyId)/extensions"
Expand Down

0 comments on commit 154af25

Please sign in to comment.