Skip to content

Commit

Permalink
SanitizeBoundParameters fix
Browse files Browse the repository at this point in the history
correctly handling an Isilon response with multiple errors
added missing parameter in the SanitizeBoundParameters function
  • Loading branch information
vchrisb committed Sep 7, 2016
1 parent 925e3bb commit 97f1dc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IsilonPlatform/Functions/IsilonPlatformAddOn.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function SanitizeBoundParameters {
[parameter(Mandatory=$True, ValueFromPipeline=$True)][hashtable]$Parameters
)

$commonParameters = @('Cluster', 'Verbose', 'Debug', 'ErrorAction', 'ErrorVariable', 'WarningAction', 'WarningVariable', 'OutBuffer', 'PipelineVariable', 'OutVariable')
$commonParameters = @('Cluster', 'Verbose', 'Debug', 'ErrorAction', 'ErrorVariable', 'WarningAction', 'WarningVariable', 'InformationAction', 'InformationVariable', 'OutBuffer', 'PipelineVariable', 'OutVariable', 'Force')

$commonParameters | % {
$Parameters.Remove($_)
Expand Down
2 changes: 1 addition & 1 deletion IsilonPlatform/IsilonPlatform.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
RootModule = 'IsilonPlatform.psm1'

# Version number of this module.
ModuleVersion = '8.0.4'
ModuleVersion = '8.0.5'

# ID used to uniquely identify this module
GUID = '0bcb10cf-1d7e-4bad-8239-f725dcf1808f'
Expand Down
3 changes: 2 additions & 1 deletion IsilonPlatform/IsilonPlatform.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ function Send-isiAPI{
$result = $_.Exception.Response.GetResponseStream()
$reader = New-Object System.IO.StreamReader($result)
$responseBody = $reader.ReadToEnd() | ConvertFrom-Json
Write-Error $responseBody.errors.message
$responeMessage = $responseBody.errors.message | Out-String
Write-Error $responeMessage
} else {
Write-Error $_.Exception
}
Expand Down

0 comments on commit 97f1dc7

Please sign in to comment.