oravirt / ansible-oracle-modules

Oracle modules for Ansible
MIT License
214 stars 160 forks source link

memoryview: a bytes-like object is required, not str #186

Open rubobman opened 3 months ago

rubobman commented 3 months ago

oracle_sqldba is not working on Linux 8, python 3.6.8 Need replace [sout, serr] = sql_process.communicate(input = sql_cmd)

to [sout, serr] = sql_process.communicate(input=sql_cmd.encode('utf-8')) sout = sout.decode('utf-8') serr = serr.decode('utf-8')