Closed danielboth closed 4 years ago
Good observation! I also think that more information from the Test() output will be helpful. We will start working on applying this feature to all existing DSC Resources that we have in the VMware.vSphereDSC module.
The verbose message output when the Test() method fails was added via PR #268. You can run one of the Configurations in the repository to see the new format.
When a DSC resource is not in desired state, the test method should show clearly (in verbose mode) what is not in desired state, by showing both current and desired values.
For example when running with the following configuration:
I'm only getting these verbose messages when the DSC resource is out of desired state.
Not useful, as I don't have any idea now what's wrong, are the NTP servers configured incorrectly, or is the service not configured properly. Instead I would like to read
That way, it becomes also clear what executing Set will actually change when executed in production.
I'm using VMware.vSphereDsc version 2.1.0.58