Bug 1005045 - process.py:Met "TypeError: unicode() argument 2 must be string, not None" error
Summary: process.py:Met "TypeError: unicode() argument 2 must be string, not None" error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-node
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mike Burns
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-06 06:12 UTC by haiyang,dong
Modified: 2013-11-28 11:57 UTC (History)
14 users (show)

Fixed In Version: ovirt-node-3.0.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-28 11:57:04 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 18919 0 None None None Never

Description haiyang,dong 2013-09-06 06:12:33 UTC
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:

--


Note You need to log in before you can comment on or make changes to this bug.