diff --git a/cinderclient/tests/unit/v2/fakes.py b/cinderclient/tests/unit/v2/fakes.py index ae21eebe0..18aa99f96 100644 --- a/cinderclient/tests/unit/v2/fakes.py +++ b/cinderclient/tests/unit/v2/fakes.py @@ -1278,9 +1278,9 @@ class FakeHTTPClient(base_client.HTTPClient): 'storage_protocol': 'iSCSI', 'properties': { 'compression': { - 'title': 'Compression', - 'description': 'Enables compression.', - 'type': 'boolean'}, + u'title': u'Compression', + u'description': u'Enables compression.', + u'type': u'boolean'}, } } ) diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index dc2c14e4e..9a5d7c582 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -2375,7 +2375,8 @@ def do_get_capabilities(cs, args): prop = infos.pop('properties', None) utils.print_dict(infos, "Volume stats") - utils.print_dict(prop, "Backend properties") + utils.print_dict(prop, "Backend properties", + formatters=sorted(prop.keys())) @utils.arg('volume',