Bug 1005045 - process.py:Met "TypeError: unicode() argument 2 must be string, not None" error
process.py:Met "TypeError: unicode() argument 2 must be string, not None" error
Status: CLOSED CURRENTRELEASE
Product: oVirt
Classification: Community
Component: ovirt-node (Show other bugs)
unspecified
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Mike Burns
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-06 02:12 EDT by haiyang,dong
Modified: 2013-11-28 06:57 EST (History)
14 users (show)

See Also:
Fixed In Version: ovirt-node-3.0.3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-28 06:57:04 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 18919 None None None Never

  None (edit)
Description haiyang,dong 2013-09-06 02:12:33 EDT
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.