aklyuk / zabbix-ibm-storwize

Python script for monitoring IBM Storwize storages
15 stars 20 forks source link

bytes-like object is required not 'str #13

Open Alex-Fillipe opened 2 years ago

Alex-Fillipe commented 2 years ago

Good afternoon, When I use python 3 it gives error "bytes-like object is required not 'str''"

SinRoot commented 9 months ago

Worked for me: in procedure "advanced_info_of_resource" in string "attributes_of_resource = stdout.read()" need to add ".decode('ascii')"

attributes_of_resource = stdout.read().decode('ascii')

https://github.com/SinRoot/zabbix-ibm-storwize/blob/master/storwize_get_state.py#L113