Remove operation to set ZvmLocalInfo Variable
This commit is contained in:
@@ -62,10 +62,7 @@ function Connect-ZertoServer {
|
|||||||
end {
|
end {
|
||||||
# Build Headers Hashtable with Authorization Token
|
# Build Headers Hashtable with Authorization Token
|
||||||
$Script:zvmHeaders['x-zerto-session'] = $results.Headers['x-zerto-session'][0].ToString()
|
$Script:zvmHeaders['x-zerto-session'] = $results.Headers['x-zerto-session'][0].ToString()
|
||||||
# Set common Script Scope Variables to be used other functions (Headers and Local Site Info)
|
|
||||||
# Set-Variable -Name zvmHeaders -Scope Script -Value $zertoAuthorizationHeaders
|
|
||||||
Set-Variable -Name zvmLocalInfo -Scope Script -Value (Get-ZertoLocalSite)
|
|
||||||
|
|
||||||
# Have the option to return the headers to a variable
|
# Have the option to return the headers to a variable
|
||||||
if ($returnHeaders) {
|
if ($returnHeaders) {
|
||||||
return $Script:zvmHeaders
|
return $Script:zvmHeaders
|
||||||
|
|||||||
Reference in New Issue
Block a user