Description of problem:
when using "check_output" of process.py in bash script:
python <<EOP
from ovirt.node.utils import process
process.check_output("ls")
EOP
sys.stdin.encoding return None, not "utf-8", then
t will throw an exception:
File "/usr/lib/python2.7/site-packages/ovirt/node/utils/process.py", line 77, in check_output
TypeError:unicode() argument 2 must be string, not None error
Version-Release number of selected component (if applicable):
ovirt-node-iso-3.1.0-0.999.999.20130902154824gitbe189b3.497.fc18.iso
How reproducible:
100%
Steps to Reproduce:
Actual result:
Met "TypeError: unicode() argument 2 must be string, not None" error when trying using
"check_output" of process.py in bash script
Expect result:
using "check_output" of process.py in bash script should success
Additional info:
--
Description of problem: when using "check_output" of process.py in bash script: python <<EOP from ovirt.node.utils import process process.check_output("ls") EOP sys.stdin.encoding return None, not "utf-8", then t will throw an exception: File "/usr/lib/python2.7/site-packages/ovirt/node/utils/process.py", line 77, in check_output TypeError:unicode() argument 2 must be string, not None error Version-Release number of selected component (if applicable): ovirt-node-iso-3.1.0-0.999.999.20130902154824gitbe189b3.497.fc18.iso How reproducible: 100% Steps to Reproduce: Actual result: Met "TypeError: unicode() argument 2 must be string, not None" error when trying using "check_output" of process.py in bash script Expect result: using "check_output" of process.py in bash script should success Additional info: --