Skip to content

Commit

Permalink
Update type
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgw committed Nov 19, 2022
1 parent 83472a3 commit 79d051c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Classes/020.PSResource.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 79d051c

Please sign in to comment.