Closed Franck-Bonneau closed 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'
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
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'