microsoft / SharePointDSC.Reverse

Extracts a Desired State Configuration Script from an existing SharePoint Farm
MIT License
40 stars 27 forks source link

Issue with search Custom content sources retrival #102

Open anilb75 opened 4 years ago

anilb75 commented 4 years ago

Please provide the following information regarding your issue (place N/A if certain fields don't apply in your case:

Hi,

I am using the Reverse DSC .VERSION 3.7.0.1.

Our Search environment has custom and sharepoint(SharePoint, File) content sources. The Reverse DSC code which needs to skip when it encounters Custom Content sources Instead fails and skips remaining all content sources.

I went through the reverse DSC code and found that the $source.Type Object used to compare with the 'Custom Repository' is never defined and its empty and if condition always evaluated to 'True' . I believe that the IF condition should be something like " if(!($contentSource.Type -eq "Custom"))"