solidfire / PowerShell

Collection of scripts, functions, and examples using the SolidFire Tools for PowerShell
MIT License
27 stars 20 forks source link

Can't load 12.3.0.81 on PS 7.4.0 #97

Open scaleoutsean opened 11 months ago

scaleoutsean commented 11 months ago

Even if I re-install the module, I still can't load it on PowerShell 7.4.0.

PS > Install-Module -Name SolidFire.Core -Verbose                          
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='SolidFire.Core'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'SolidFire.Core'.
VERBOSE: Skipping installed module SolidFire.Core 12.3.0.81.

PS > Get-Module -Verbose                                                   

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Manifest   7.0.0.0               Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-Item, Clear-ItemProperty…}
Manifest   7.0.0.0               Microsoft.PowerShell.Utility        {Add-Member, Add-Type, Clear-Variable, Compare-Object…}
Script     1.4.8.1               PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider…}
Script     2.2.5                 PowerShellGet                       {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability…}
Script     2.3.4                 PSReadLine                          {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, S…

PS > Import-Module -Verbose SolidFire.Core
VERBOSE: Loading module from path '/home/ubuntu/.local/share/powershell/Modules/SolidFire.Core/12.3.0.81/SolidFire.Core.psd1'.
VERBOSE: Populating RepositorySourceLocation property for module SolidFire.Core.
VERBOSE: Loading module from path '/home/ubuntu/.local/share/powershell/Modules/SolidFire.Core/12.3.0.81/SolidFire.dll'.
Import-Module: Assembly with same name is already loaded

PS > Connect-SFCluster -Target 192.168.1.30 -Username admin -Password admin
Connect-SFCluster: The term 'Connect-SFCluster' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Ubuntu 22.04.3 LTS
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0