summaryrefslogtreecommitdiffstats
path: root/nova/process.py
diff options
context:
space:
mode:
authorSoren Hansen <soren.hansen@rackspace.com>2010-09-14 15:22:56 +0200
committerSoren Hansen <soren.hansen@rackspace.com>2010-09-14 15:22:56 +0200
commit85dbf6162d7b22991389db397f9aa1871464737f (patch)
treee869bbadfa89563de6609b8517d47f809b887fa1 /nova/process.py
parent65113c4aa92fa5e803bbe1ab56f7facf57753962 (diff)
downloadnova-85dbf6162d7b22991389db397f9aa1871464737f.tar.gz
nova-85dbf6162d7b22991389db397f9aa1871464737f.tar.xz
nova-85dbf6162d7b22991389db397f9aa1871464737f.zip
Cast process input to a str. It must not be unicode, but stuff that comes out of the database might very well be unicode, so using such a value in a template makes the whole thing unicode.
Diffstat (limited to 'nova/process.py')
-rw-r--r--nova/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/process.py b/nova/process.py
index 74725c157..bda8147d5 100644
--- a/nova/process.py
+++ b/nova/process.py
@@ -113,7 +113,7 @@ class BackRelayWithInput(protocol.ProcessProtocol):
if self.started_deferred:
self.started_deferred.callback(self)
if self.process_input:
- self.transport.write(self.process_input)
+ self.transport.write(str(self.process_input))
self.transport.closeStdin()
def get_process_output(executable, args=None, env=None, path=None,