vchrisb / Isilon-POSH

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

Remove isi-session does not work if session is timed out #4

Closed sluetze closed 9 years ago

sluetze commented 9 years ago

if you pause your actions and the session expires you get the (expected) error: Send-isiAPI : Session timout for "Cluster"

If you want to Remove the session by using Remove-isiSession -Cluster I also get a timeout error. I guess this is because of the "send-isiAPI" Call to delete the session on the cluster.

so if you ran into the first timeout you are unable to connect to the cluster or remove the session until you restarted your powershell - session.

This may not be relevant if you only use the Module to automate, but if you want to administrate your cluster from a Windows Server

vchrisb commented 9 years ago

I've done quite a bit bug fixing and hardening of the functions the last days. I'll check if this also fixed and will probably commit the changes the next days. You can also just reconnect using New-isiSession. That overwrites the expired session.

vchrisb commented 9 years ago

With my latest commit should the functions around the Session handling be more robust.