Home Dashboard Directory Help
Search

PS4 - DSC ConfigurationData AllNodes Not Evaluated Correctly by Steve Murawski


Status: 

Closed
 as Fixed Help for as Fixed


5
0
Sign in
to vote
Type: Bug
ID: 792462
Opened: 7/3/2013 8:54:37 AM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description


When passing -ConfigurationData to a configuration, the AllNodes key should be populated into an AllNodes variable for evaluation (per the DSC cheat sheet).

This doesn't appear to happen. $AllNodes is not populated as an automatic variable

This problem is compounded in the Nodes function in PSDesiredSTateConfiguration.psm1.

On line 401, there is a guard check to see if $Name is null and if so exit. If you are passing $allnodes.NodeName (or some filtered version thereof), this $name is null, so it never gets to creating a node map from the $configurationData.
Details
Sign in to post a comment.
Sign in to post a workaround.