Skip to content

Commit

Permalink
Fixed bug with no results 🐜
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapbrasser committed Sep 7, 2020
1 parent 643d206 commit d859b31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rubrik/Public/Get-RubrikDatabaseMount.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ function Get-RubrikDatabaseMount
for ($i = 0; $i -lt @($result).Count; $i++) {
$Percentage = [int]($i/@($result).count*100)
Write-Progress -Activity "DetailedObject queries in Progress, $($i+1) out of $(@($result).count)" -Status "$Percentage% Complete:" -PercentComplete $Percentage
Get-RubrikDatabaseMount -id $result[$i].id
if ($result) {
Get-RubrikDatabaseMount -id $result[$i].id
}
}
} else {
$result = Set-ObjectTypeName -TypeName $resources.ObjectTName -result $result
Expand Down

0 comments on commit d859b31

Please sign in to comment.