Src/Private/Get-AbrOntapSysConfigImage.ps1

function Get-AbrOntapSysConfigImage {
    <#
    .SYNOPSIS
    Used by As Built Report to retrieve NetApp ONTAP System Image information from the Cluster Management Network
    .DESCRIPTION

    .NOTES
        Version: 0.6.2
        Author: Jonathan Colon
        Twitter: @jcolonfzenpr
        Github: rebelinux
    .EXAMPLE

    .LINK

    #>

    [CmdletBinding()]
    param (
    )

    begin {
        Write-PscriboMessage "Collecting ONTAP System Image information."
    }

    process {
        $Data =  Get-NcSystemImage -Controller $Array
        $OutObj = @()
        if ($Data) {
            foreach ($Item in $Data) {
                $inObj = [ordered] @{
                    'Node' = $Item.Node
                    'Location' = $Item.Image
                    'Is Current' = ConvertTo-TextYN $Item.IsCurrent
                    'Is Default' = ConvertTo-TextYN $Item.IsDefault
                    'Install Time' = $Item.InstallTimeDT
                    'Version' = $Item.Version
                }
                $OutObj += [pscustomobject]$inobj
            }

            $TableParams = @{
                Name = "System Image - $($ClusterInfo.ClusterName)"
                List = $false
                ColumnWidths = 23, 15, 12, 12, 26, 12
            }
            if ($Report.ShowTableCaptions) {
                $TableParams['Caption'] = "- $($TableParams.Name)"
            }
            $OutObj | Table @TableParams
        }
    }

    end {}

}