diff options
author | Sergii Golovatiuk <sgolovatiuk@mirantis.com> | 2016-07-14 16:58:56 +0200 |
---|---|---|
committer | Sergii Golovatiuk <sgolovatiuk@mirantis.com> | 2016-07-14 16:58:56 +0200 |
commit | 200e811268b7c17e814cfb6b7ef3f603c0590abc (patch) | |
tree | f767381cae14c9d66e7e224e4863f1910e1e3293 /upstart | |
parent | b3193a4b5204d12825d8317bf0f8c3577c1d8153 (diff) | |
download | vyos-cloud-init-200e811268b7c17e814cfb6b7ef3f603c0590abc.tar.gz vyos-cloud-init-200e811268b7c17e814cfb6b7ef3f603c0590abc.zip |
Change StringIO to BytesIO in cc_mcollective.py
* StringIO from six doesn't act as 'binary stream' in Python 3.
This patch changes StringIO to BytesIO to have code compatible with
Python 3 and Python 2.
* Add try/except for IOError in case when server.cfg doesn't exists. This is
necessary for unit tests or cases when server.cfg is not included to package
* Add UnitTest for cc_mcollective.py
LP: #1597699
Diffstat (limited to 'upstart')
0 files changed, 0 insertions, 0 deletions