diff options
| author | Masaki Matsushita <glass.saga@gmail.com> | 2015-06-22 13:55:49 +0900 |
|---|---|---|
| committer | Masaki Matsushita <glass.saga@gmail.com> | 2015-06-29 10:13:12 +0900 |
| commit | 29d0703de16f20c0ab33b7b4b8567892b7601b15 (patch) | |
| tree | 135da9b42c544f70285ce15b9a94d38ced92aad1 /troveclient/utils.py | |
| parent | 0702365088753ff2d5ae33ce6c6af15b00a57a10 (diff) | |
| download | python-troveclient-29d0703de16f20c0ab33b7b4b8567892b7601b15.tar.gz | |
Fix flavor-show problems with UUID
flavor-show fails if the flavor's ID is in the form of UUID
and user specified its name.
The change in troveclient/v1/shell.py#L92-L95 is from Sushil Kumar.
Closes-Bug: #1467383
Change-Id: Ie838796191a06193a59499da59fae79b9d9f060f
Diffstat (limited to 'troveclient/utils.py')
| -rw-r--r-- | troveclient/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/troveclient/utils.py b/troveclient/utils.py index 8f1e1f6..c685ea2 100644 --- a/troveclient/utils.py +++ b/troveclient/utils.py @@ -178,7 +178,7 @@ def print_list(objs, fields, formatters={}, order_by=None, obj_is_dict=False, data = obj.get(field, '') else: data = getattr(obj, field, '') - row.append(data) + row.append(str(data)) # set the alignment to right-aligned if it's a numeric if set_align and hasattr(data, '__int__'): align[labels[field]] = 'r' |
