diff options
| author | Brant Knudson <bknudson@us.ibm.com> | 2014-08-05 17:57:46 -0500 |
|---|---|---|
| committer | Brant Knudson <bknudson@us.ibm.com> | 2014-08-05 18:01:54 -0500 |
| commit | 68c2fad55a71ca511ff959e589aa0a3f3dbd4b78 (patch) | |
| tree | 3703eea21ac396bb72ae2cf0ef7b9769f1db0c12 /keystoneclient/shell.py | |
| parent | 64a21b56f5f44813f51697190baa560d593ba28c (diff) | |
| download | python-keystoneclient-68c2fad55a71ca511ff959e589aa0a3f3dbd4b78.tar.gz | |
Use oslo.utils
keystoneclient was using utility function from oslo-incubator
rather than oslo.utils.
Change-Id: I2909a2150b9556e54ef88e72358fda1cf8b7cc1c
Diffstat (limited to 'keystoneclient/shell.py')
| -rw-r--r-- | keystoneclient/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystoneclient/shell.py b/keystoneclient/shell.py index 61b93e9..7edd355 100644 --- a/keystoneclient/shell.py +++ b/keystoneclient/shell.py @@ -30,6 +30,7 @@ import logging import os import sys +from oslo.utils import encodeutils import six import keystoneclient @@ -37,7 +38,6 @@ from keystoneclient import access from keystoneclient.contrib.bootstrap import shell as shell_bootstrap from keystoneclient import exceptions as exc from keystoneclient.generic import shell as shell_generic -from keystoneclient.openstack.common import strutils from keystoneclient import session from keystoneclient import utils from keystoneclient.v2_0 import shell as shell_v2_0 @@ -461,7 +461,7 @@ def main(): OpenStackIdentityShell().main(sys.argv[1:]) except Exception as e: - print(strutils.safe_encode(six.text_type(e)), file=sys.stderr) + print(encodeutils.safe_encode(six.text_type(e)), file=sys.stderr) sys.exit(1) |
