diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2018-03-20 15:40:18 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2018-03-20 15:40:23 -0500 |
| commit | 6df58b63667b3f7b76c7825f5204a6c4f531521c (patch) | |
| tree | 3ccdccac16b5665fcfd097ca976a9a354192db14 /openstackclient/image | |
| parent | 9a173568548203757a7fd20883edd56f923cc7e8 (diff) | |
| download | python-openstackclient-6df58b63667b3f7b76c7825f5204a6c4f531521c.tar.gz | |
Fix additional output encoding issues
This is a followup to https://review.openstack.org/#/c/541609/ that
changes most outstanding direct uses of sys.stdout to use the encoded
stdout set up by cliff.
Change-Id: I07cfc418385fc787d3b7d3c32d39676cf81bb91f
Diffstat (limited to 'openstackclient/image')
| -rw-r--r-- | openstackclient/image/v2/image.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index 7e6a7aa1..ddcee4ad 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -17,7 +17,6 @@ import argparse import logging -import sys from glanceclient.common import utils as gc_utils from osc_lib.cli import parseractions @@ -653,7 +652,7 @@ class SaveImage(command.Command): if data.wrapped is None: msg = _('Image %s has no data.') % image.id LOG.error(msg) - sys.stdout.write(msg + '\n') + self.app.stdout.write(msg + '\n') raise SystemExit gc_utils.save_image(data, parsed_args.file) |
