Update to use locally set variable to avoid additional API Call

This commit is contained in:
Wes Carroll committed 2019-03-10 22:12:32 -04:00
1 parent 3e44a2f02d
commit e314e2a947
1 file changed
+1 -1
@@ -1,6 +1,6 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Get-ZertoUnprotectedVm {
[cmdletbinding()]
$uri = "virtualizationsites/{0}/vms" -f $(Get-ZertoLocalSite).siteidentifier
$uri = "virtualizationsites/{0}/vms" -f $script:zvmLocalInfo.siteidentifier
Invoke-ZertoRestRequest -uri $uri
}