joshn-ridewta-com / PoshIssues

PowerShell module to check, track and fix issues.
Creative Commons Zero v1.0 Universal
0 stars 1 forks source link

Invoke-IssueFix with multiple fixes breaks #13

Closed joshn-ridewta-com closed 5 years ago

joshn-ridewta-com commented 5 years ago

It seems that when more then one fix is passed to invoke-issuefix, all but the first fix return with errors:

New-Variable : A variable with name 'PSDefaultParameterValues' already exists.
At C:\Users\joshn\Documents\WindowsPowerShell\Modules\PoshIssues\0.3.1\fixes.psm1:717 char:79
+ ... ToPass.Add((New-Variable -Name "PSDefaultParameterValues" -Value $Def ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceExists: (PSDefaultParameterValues:String) [New-Variable], SessionStateExceptio 
   n
    + FullyQualifiedErrorId : VariableAlreadyExists,Microsoft.PowerShell.Commands.NewVariableCommand

and fixResults : Object reference not set to an instance of an object.