stevevillardi / Logic.Monitor

LogicMonitor PowerShell Module for automating LM Portal tasks using APIv3
https://www.powershellgallery.com/packages/Logic.Monitor
Mozilla Public License 2.0
23 stars 3 forks source link

Powershell Gallery Down = Module Fails to Function #24

Open tehfonz opened 3 months ago

tehfonz commented 3 months ago

Hi Steve,

When then Powershell Gallery is down / non-contactable the Logic Monitor Powershell Module fails to function as it reaches out for the latest version of the script. Perhaps need a timeout or a try catch for this eventuality.

Cheers,

stevevillardi commented 3 months ago

You should still be able to use the module if you connect with the switch -SkipVersionCheck. I will revisit the module version check function and ensure it gracefully fails in the event the PSGallery is unreachable. Thanks for brining this to my attention.