
Add an optional binary parameter to execute() and ssh_execute() functions of oslo_concurrency.processutils. If binary is True, stdout and stderr are returned as byte strings on Python 2 and Python 3. When Nova will be ported to Python 3, binary=True will be needed to get binary outputs (like an encryption key, see the bug #1410348). Add new tests. This changeset does not change the default behaviour. Change-Id: I283cadf04781942b65f211237070cc2354939cdb Related-Bug: 1410348
oslo.concurrency
The oslo.concurrency library has utilities for safely running multi-thread, multi-process applications using locking mechanisms and for running external processes.
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/oslo.concurrency
- Source: http://git.openstack.org/cgit/openstack/oslo.concurrency
- Bugs: http://bugs.launchpad.net/oslo.concurrency
Description
Languages
Python
100%