Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AkamaiPowershell.psm1 throwing error with PowerShell 5.1 #52

Open
blainekwilson opened this issue Mar 18, 2024 · 1 comment
Open

AkamaiPowershell.psm1 throwing error with PowerShell 5.1 #52

blainekwilson opened this issue Mar 18, 2024 · 1 comment

Comments

@blainekwilson
Copy link

blainekwilson commented Mar 18, 2024

AkamaiPowershell.psm1 is throwing an error on line 43 with PowerShell 5.1

Current line:
Remove-Variable $LatestVersion

should be:
Remove-Variable -Name LatestVersion

Additional Information:
Exception

Remove-Variable : Cannot bind argument to parameter 'Name' because it is null.
At C:\Users\<removed>\<removed>\Documents\WindowsPowerShell\Modules\AkamaiPowershell\1.12.0\AkamaiPowershell.psm1:43 char:21
+     Remove-Variable $LatestVersion
+                     ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Remove-Variable], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RemoveVariableCommand

PowerShell Version

PSVersion                      5.1.19041.4046
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.4046
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@stuartio
Copy link
Collaborator

Thanks @blainekwilson . This functionality doesn't exist in the new version, which we will hopefully be releasing in the next few weeks, but I will put in a fix if we end up releasing a patch to v1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants