vchrisb / Isilon-POSH

EMC Isilon Platform API implementation in PowerShell
MIT License
25 stars 13 forks source link

Error using -Force parameter with Set-IsiSnapshot #9

Closed hershsa closed 8 years ago

hershsa commented 8 years ago

Trying to change the expiration of snapshot without being prompted by using the -force option but receiving the following error:

Send-isiAPI : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Message'. Specified method is not supported. At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\IsilonPlatform\Functions\IsilonPlatformSet.ps1:9870 char:18

Command I'm using (which works without the -force):

Set-isiSnapshot -id $snapshot.id -expires $new_expiration -Force

vchrisb commented 8 years ago

Thank you for reporting the bug!

There are actually two bugs:

I'll fix them and commit the changes

vchrisb commented 8 years ago

I fixed these issues with this commit: 97f1dc7f9dfa7ab421dce8c710c11f1c4dff2103 @hershsa can you please test it?

hershsa commented 8 years ago

That did the trick! Thanks for the quick fix.

vchrisb commented 8 years ago

Great! I'm creating a new release.