Update mandatory parameter declaration
This commit is contained in:
@@ -3,7 +3,7 @@ function Connect-ZertoAnalytics {
|
||||
[cmdletbinding()]
|
||||
param(
|
||||
[Parameter(
|
||||
Mandatory = $true,
|
||||
Mandatory,
|
||||
HelpMessage = "PSCredential Object containing username and password authorized for the Zerto Analytics site",
|
||||
Position = 0
|
||||
)]
|
||||
@@ -17,4 +17,4 @@ function Connect-ZertoAnalytics {
|
||||
$result = Invoke-ZARestRequest -Uri $uri -body $($body | ConvertTo-Json) -Method POST
|
||||
$Script:zaHeaders["Authorization"] = "Bearer $($result.Token)"
|
||||
$Script:zaHeaders
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user