mtik00 / storcli-check

Python script to run storcli and report issues
MIT License
22 stars 20 forks source link

In sendmail function, attachments=None will trigger exception #4

Closed orodbhen closed 7 years ago

orodbhen commented 7 years ago

First off, thanks for the great utility. You saved me a ton of time.

Line 245 of storcli_check.py should be:

attachments = attachments or []

Other wise, if attachments is None, it will be set to None again, instead of [].

I disabled the attachments for my environment, but perhaps a command line argument to do this would be better. I just prefer to store it all in a log file locally.

mtik00 commented 7 years ago

Sorry it took so long... ya, thanks!