Skip to content

Commit

Permalink
Merge pull request #3623 from malauter/Fix-3577
Browse files Browse the repository at this point in the history
SPOHomeSite: Fix issue if no home site exists
  • Loading branch information
NikCharlebois committed Aug 30, 2023
2 parents 579928e + 42e1609 commit 5e46161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

* O365SearchAndintelligenceConfigurations
* Removed support for Service Principal Auth, which the cmdlet never supported.
* SPOHomeSite
* Fixes an issue if no home site exists
FIXES [#3577](https://github.com/microsoft/Microsoft365DSC/issues/3577)
* DEPENDENCIES
* Updated Microsoft.Graph to version 2.4.0.
* Updated ReverseDSC to version 2.0.0.18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function Get-TargetResource
{
Write-Verbose -Message 'Getting current home site collection settings'
$homeSiteUrl = Get-PnPHomeSite -ErrorAction Stop
if ($null -eq $homeSiteUrl)
if ([string]::IsNullOrEmpty($homeSiteUrl))
{
Write-Verbose -Message 'There is no Home Site Collection set.'
return $nullReturn
Expand Down

0 comments on commit 5e46161

Please sign in to comment.