davidobrien1985 / DscResources

This repository will contain custom PowerShell DSC Resources
MIT License
22 stars 9 forks source link

PSModuleRepositoryResource fails test if Repository already exists #14

Open J4nJ4nsen opened 6 years ago

J4nJ4nsen commented 6 years ago

That makes no sense, since it cannot be used to modify any existing repo, thus running every time a cfg is applied (each reboot, each push, each pull etc.)

(And what does it if it doesn't exists? Fails it too? So all tests fail everytime? I don't recognize what this is supposed to...)

Here the Output: ... [Computer]: [[PSModuleRepositoryResource]PSRepository::[PackageMgmt]PackageMgmt] Found existing repository with name 'PSGallery' [Computer]: LCM: [ End Test ] [[PSModuleRepositoryResource]PSRepository::[PackageMgmt]PackageMgmt] False in 3.3920 seconds. [Computer]: LCM: [ End Resource ] [[PSModuleRepositoryResource]PSRepository::[PackageMgmt]PackageMgmt] ...

There were no other messages in between these output lines, so this seems to be the desired script behaviour and not a result of some other issue.

I use the actual version 0.3