Update to use locally set variable to avoid additional API Call
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
|
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
|
||||||
function Get-ZertoUnprotectedVm {
|
function Get-ZertoUnprotectedVm {
|
||||||
[cmdletbinding()]
|
[cmdletbinding()]
|
||||||
$uri = "virtualizationsites/{0}/vms" -f $(Get-ZertoLocalSite).siteidentifier
|
$uri = "virtualizationsites/{0}/vms" -f $script:zvmLocalInfo.siteidentifier
|
||||||
Invoke-ZertoRestRequest -uri $uri
|
Invoke-ZertoRestRequest -uri $uri
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user