diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-07-31 15:16:48 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-07-31 15:16:48 +0000 |
| commit | 661da45f58d3a48cce4720aa2f10b6cd616376e8 (patch) | |
| tree | b146866aff2fa0c87c6511f0154b08ea705c145c /openstackclient/common/utils.py | |
| parent | 9ec1cf385ee1434ebdb13a9de2f35024925ff50f (diff) | |
| parent | c94e262df8d2d37e6c2043a3c3d0bc1cb78348a5 (diff) | |
| download | python-openstackclient-661da45f58d3a48cce4720aa2f10b6cd616376e8.tar.gz | |
Merge "Add security group commands"
Diffstat (limited to 'openstackclient/common/utils.py')
| -rw-r--r-- | openstackclient/common/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openstackclient/common/utils.py b/openstackclient/common/utils.py index fd504ea1..4d2afd15 100644 --- a/openstackclient/common/utils.py +++ b/openstackclient/common/utils.py @@ -16,11 +16,13 @@ """Common client utilities""" import os +import six import sys import time import uuid from openstackclient.common import exceptions +from openstackclient.openstack.common import strutils def find_resource(manager, name_or_id): @@ -84,7 +86,8 @@ def format_dict(data): output = "" for s in data: - output = output + s + "='" + data[s] + "', " + output = output + s + "='" + \ + strutils.safe_encode(six.text_type(data[s])) + "', " return output[:-2] |
