-
Notifications
You must be signed in to change notification settings - Fork 135
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
xPackage: The variable '$Localized' cannot be retrieved because it has not been set. #449
Comments
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
This issue has been automatically closed because it is has not had activity from the community in the last 40 days. |
Unstale |
Reopen. |
xPackage: Fix a misnamed variable #449
Details of the scenario you tried and the problem that is occurring
Trying to install a package and got this error. I forgot to include two backward slashes (it's a network location) so it is expected to have an error - but this ended with an unexpected different error message because there's a misnamed variable.
Verbose logs showing the problem
Suggested solution to the issue
Change:
Write-Verbose -Message ($Localized.TheUriSchemeWasUriScheme -f $uri.Scheme)
To:
Write-Verbose -Message ($localizedData.TheUriSchemeWasUriScheme -f $uri.Scheme)
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Windows Server 2012
Version and build of PowerShell the target node is running
WMF 5.1
Version of the DSC module that was used ('dev' if using current dev branch)
dev
The text was updated successfully, but these errors were encountered: