From 79d051ca1900f4211e2afe55b24b86625ac694c0 Mon Sep 17 00:00:00 2001 From: Nick Germany Date: Fri, 18 Nov 2022 23:11:13 -0500 Subject: [PATCH] Update type --- source/Classes/020.PSResource.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Classes/020.PSResource.ps1 b/source/Classes/020.PSResource.ps1 index c8d2b6ab..fb9f9afa 100644 --- a/source/Classes/020.PSResource.ps1 +++ b/source/Classes/020.PSResource.ps1 @@ -141,7 +141,7 @@ class PSResource : ResourceBase { $currentState.Ensure = [Ensure]::Present - $version = $this.GetFullVersion($resources) + $version = $this.GetFullVersion($resources[0]) $currentState.RequiredVersion = $version $currentState.MinimumVersion = $version $currentState.MaximumVersion = $version @@ -228,7 +228,7 @@ class PSResource : ResourceBase <# Get all instances of installed resource on the system #> - hidden [System.Management.Automation.PSModuleInfo] GetInstalledResource() + hidden [System.Management.Automation.PSModuleInfo[]] GetInstalledResource() { return $(Get-Module -Name $this.Name -ListAvailable) }