-
Notifications
You must be signed in to change notification settings - Fork 134
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: incorrect verbose message "Product installation cannot be determined" due to bug in conditional statement #446
Comments
I have created a fork and made the quick change and pushing it up shortly. |
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. |
Reopening PR |
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. |
xPackage: updated conditional statement to -ne to provide correct verbose output (fixes #446)
Details of the scenario you tried and the problem that is occurring
Hello all, I was working on a partial configuration using the xPackage Resource within xPSDesiredStateConfiguration and noticed incorrect output in the verbose statement due to an error in the conditional statement. It's a quick fix, the logic should be not equal to rather than equal to like the next set of logic below in the xPackage resource. This will result in proper ProductIsProduct validation and return the $productEntry rather than "Product installation cannot be determined".
Verbose logs showing the problem
Suggested solution to the issue
Current code within conditional statement
Proposed code within conditional statement
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
xPSDesiredStateConfiguration 8.3.0.0
The text was updated successfully, but these errors were encountered: