Skip to content

Commit

Permalink
Fix pnp#1717 - issue with Get-PnPTenantSite case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamdsheth committed Apr 16, 2022
1 parent 6d781ce commit 7e9452b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

### Fixed

- Fixed `Get-PnPTenantSite` cmdlet so that it will return data even if the template name is specified in a different case.

### Removed

### Contributors
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Admin/GetTenantSite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected override void ExecuteCmdlet()

if (Template != null)
{
WriteObject(sites.Where(t => t.Template == Template).OrderBy(x => x.Url).Select(s => new Model.SPOSite(s, null)), true);
WriteObject(sites.Where(t => t.Template.ToLower() == Template.ToLower()).OrderBy(x => x.Url).Select(s => new Model.SPOSite(s, null)), true);
}
else
{
Expand Down

0 comments on commit 7e9452b

Please sign in to comment.