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

Issues with Depends on #114

Open
Br4v3St4rr opened this issue Sep 29, 2021 · 3 comments
Open

Issues with Depends on #114

Br4v3St4rr opened this issue Sep 29, 2021 · 3 comments
Assignees

Comments

@Br4v3St4rr
Copy link
Contributor

In the following Example:

Disks:
  Disks:
    - DiskId: 2
      DiskIdType: Number
      DriveLetter: F
      PartitionStyle: GPT
      FSFormat: NTFS

FilesAndFolders:
  Items:
    - DestinationPath: F:\ReleaseA\Admin
      Type: Directory
      Ensure: Present
      DependsOn: '[Disk]2'

DependsOn: '[Disk]2' Throws an error and the resource seems to be malformed? Perhaps this is just user error?

@raandree raandree self-assigned this Sep 29, 2021
@raandree
Copy link
Contributor

Well, using 'DependsOn' is an issue at the moment. I have solved that but the solution is not yet public. I should have some time to in the evening to write a detailed description of the solution.

@gaelcolas
Copy link
Member

The short answer though is that it should either be handled by the composites for DependsOn within a composite, or the DependsOn should be at the Composite level for dependencies between composites.
So I assume it's more of a CommonTasks issue.

@raandree
Copy link
Contributor

No, @gaelcolas, unfortunately it is more a DSC issue doing too many checks on the format if the DependsOn value. I need to go back in the commit history of one of the projects to find the details.

And the more complex the config data gets, the more you need to make dependencies between individual resources defined in different composites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants