ZertoPublic / ZertoApiWrapper

PowerShell wrapper for Zerto Virtual Manager API
GNU General Public License v3.0
16 stars 12 forks source link

Remove zvmLocalInfo Script Scope Variable #98

Closed wcarroll closed 4 years ago

wcarroll commented 4 years ago

Fixes #95

During the Connect-ZertoServer function call, a script scope variable was initially set to reduce the number of API requests during subsequent operations. The issue was that this call required a valid license and when attempting to set a license would throw and error causing confusion.

This fix removes the script scope variable and updates all locations where the variable was used with a call to get the required information.

Tests have been updated as well.