Skip to content

Commit

Permalink
Fixed incorrect handling of primaryclusterid #691
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapbrasser committed Dec 24, 2020
1 parent 5bc6ae2 commit c7ef8ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Rubrik/Public/Get-RubrikDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,15 @@ function Get-RubrikDatabase
#region One-off
# If SLA paramter defined, resolve SLAID
If ($SLA) {
$SLAID = Test-RubrikSLA -SLA $SLA -Inherit $Inherit -DoNotProtect $DoNotProtect
$TestSlaSplat = @{
SLA = $SLA
Inherit = $Inherit
DoNotProtect = $DoNotProtect
}
if ($PrimaryClusterID) {
$TestSlaSplat.PrimaryClusterID = $PrimaryClusterID
}
$SLAID = Test-RubrikSLA @TestSlaSplat
}
#endregion

Expand Down

0 comments on commit c7ef8ad

Please sign in to comment.