CiscoUcs / ucsmsdk

Python SDK for Cisco UCSM
Other
81 stars 60 forks source link

Output files for csv and html should be open as a textfile as done fo… #142

Closed Franck-Bonneau closed 7 years ago

Franck-Bonneau commented 7 years ago

Output files for csv and html should be open as a textfile as done for json

when files opened in binary mode, I got this error on Windows

_get_inventory_html(inventory=inventory, file_name=file_name, spec=spec)

File "C:\Users\fbonneau\AppData\Local\Programs\Python\Python35-32\lib\site-packages\ucsmsdk\utils\inventory.py", line 405, in _get_inventory_html f.write(html) TypeError: a bytes-like object is required, not 'str'