Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigInstructions should throw an exception when a DependsOn points to a non-existent resource #13

Open
alx9r opened this issue Nov 26, 2016 · 0 comments
Labels

Comments

@alx9r
Copy link
Owner

alx9r commented Nov 26, 2016

Consider the following:

$document = {
    Get-DscResource TestStub | Import-DscResource

    TestStub a @{
        Key = 'a'
        DependsOn = '[TestStub]b'
    }
}

ConfigInstructions Name $document

[TestStub]a depends on [TestStub]b which does not exist. This is a user error and should throw an informative exception accordingly.

A test for this behavior is already mentioned in ConfigDocumentType.Tests.ps1.

@alx9r alx9r added the Feature label Nov 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant