dsccommunity / FailoverClusterDsc

This module contains DSC resources for deployment and configuration of Windows Server Failover Cluster.
MIT License
60 stars 54 forks source link

ClusterPreferredOwner: Set-TargetResource does not handle Ensure correctly #97

Open johlju opened 7 years ago

johlju commented 7 years ago

Details of the scenario you tried and the problem that is occurring: Set-TargetResource will set preferred owners regardless if they are already correct or not. Set-TargetResource should only set preferred owner if they are not in desired state.

The DSC configuration that is using the resource (as detailed as possible): n/a

Version of the Operating System and PowerShell the DSC Target Node is running: n/a

Version of the DSC module you're using, or 'dev' if you're using current dev branch: Dev

fculpo commented 5 years ago

Indeed, using this resource always returns a change with multiple consequent runs