diff options
author | Soren Hansen <soren.hansen@rackspace.com> | 2010-09-14 15:22:56 +0200 |
---|---|---|
committer | Soren Hansen <soren.hansen@rackspace.com> | 2010-09-14 15:22:56 +0200 |
commit | 85dbf6162d7b22991389db397f9aa1871464737f (patch) | |
tree | e869bbadfa89563de6609b8517d47f809b887fa1 /nova/process.py | |
parent | 65113c4aa92fa5e803bbe1ab56f7facf57753962 (diff) | |
download | nova-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.py | 2 |
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, |