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

NugetPackage Warning message incorrect #254

Open
brywang-msft opened this issue Jan 12, 2017 · 0 comments
Open

NugetPackage Warning message incorrect #254

brywang-msft opened this issue Jan 12, 2017 · 0 comments

Comments

@brywang-msft
Copy link
Contributor

From @PlagueHO on September 25, 2016 20:1

See:
https://github.com/PowerShell/PackageManagementProviderResource/blob/master/DSCResources/MSFT_NugetPackage/MSFT_NugetPackage.psm1#L414

The order of the parameters are incorrect so a message like this can be recevied:
You are installing the module 'Git-Trusted-Certificates' from an untrusted repository 'Trusted'. Your current InstallationPolicy is
'https://nexus.contoso.com/nexus/service/local/nuget/nuget-hosted/'. If you trust the repository, set the policy to "Trusted". "Untrusted" otherwise.

Line 414 should be:
Write-Warning -Message ($localizedData.InstallationPolicyWarning -f $Name, $packageFound.Source, $InstallationPolicy)

Copied from original issue: PowerShell/PackageManagementProviderResource#31

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

No branches or pull requests

2 participants