rubrikinc / rubrik-module-for-poshbot

Rubrik Module for PoshBot
https://build.rubrik.com/tooling-integrations/rubrik-module-for-poshbot/
MIT License
5 stars 1 forks source link

Create private function for the objects gathering #3

Closed chriswahl closed 5 years ago

chriswahl commented 5 years ago

This section of code should be a private function:

    if ($objects.count -eq 0 -or -not $objects) {
        $msg = 'No SLAs found'
    } else {
        $msg = ($objects | Format-List | Out-String -Width 120)
    }