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.
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.