alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
732 stars 326 forks source link

plugin 121 breaks subsequent plugins #662

Open fabiofreireny opened 5 years ago

fabiofreireny commented 5 years ago

Plugins that are executed after plugin 121 don't produce expected results, or throw error messages

mrclschstr commented 5 years ago

I guess it's because of the usage of $vm as this is a global variable: https://github.com/alanrenouf/vCheck-vSphere/blob/281b5a7af32e7dd23be1f0cfcba8e79e6ade5475/Plugins/60%20VM/121%20BusSharingMode%20-%20Physical%20and%20Virtual.ps1#L13

fabiofreireny commented 5 years ago

I've submitted PR #663 for this.