Skip to content

Convert custom attribute ValidatePathNotInSettings to function #9406

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

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

adityapatwardhan
Copy link
Member

@adityapatwardhan adityapatwardhan commented Apr 18, 2019

PR Summary

PR #9271 broke the attribute validation on the Add-PathTToSettings function. This PR converts the custom attribute to a function and validates using ValidateScript attribute.

PR Context

We cannot use custom attribute as classes are not supported on PowerShell versions below 5.0.

PR Checklist

@adityapatwardhan adityapatwardhan merged commit 99c3fd1 into PowerShell:master Apr 18, 2019
@adityapatwardhan adityapatwardhan added the CL-NotInBuild Indicates that a PR is reverted and not part of the build. label Apr 18, 2019
@adityapatwardhan adityapatwardhan deleted the FixInstallPS branch April 18, 2019 19:50
@TravisEz13 TravisEz13 added CL-Tools Indicates that a PR should be marked as a tools change in the Change Log and removed CL-NotInBuild Indicates that a PR is reverted and not part of the build. labels Apr 18, 2019
@TravisEz13 TravisEz13 added this to the 7.0.0-preview.1 milestone Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CL-Tools Indicates that a PR should be marked as a tools change in the Change Log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants