Update to use locally set variable to avoid additional API Call
This commit is contained in:
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
|
||||
}
|
||||
Reference in new issue
Block a user