Closed david-garcia-garcia closed 4 months ago
Thank you for your contribution, David! This fix is a bit severe. I believe when it's removed, and an internet connection does not exist, it's a bunch of red.
Instead, can you please add it back then throw an -ErrorAction SilentlyContinue on that second Get-NetConnectionProfile. See if that works better.
Thank you! Please let me know if this does not solve your problem.
Working now! Thanks for your help.
Please read -- recent changes to our repo
On November 10, 2022, we removed some bloat from our repository (for the second and final time). This change requires that all contributors reclone or refork their repo.
PRs from repos that have not been recently reforked or recloned will be closed and @potatoqualitee will cherry-pick your commits and open a new PR with your changes.
Type of Change
[X] Bug fix (non-breaking change, fixes # )
Purpose
Fix internet connection check inside windows containers
Approach
Remove uneeded internet connection check prior to download attempt. Current implementation already does fallback to embedded maintenance solution if download fails, so there is no need pre-check.
Inside a windows container, see output of current commands used to pre-check if an internet connection is available.
Commands to test
Install-DbaMaintenanceSolution
Screenshots
Learning