diff options
| author | Terry Howe <terrylhowe@gmail.com> | 2014-02-13 08:07:51 -0700 |
|---|---|---|
| committer | Terry Howe <terrylhowe@gmail.com> | 2014-06-24 15:00:25 -0600 |
| commit | 8f59524c3e1ff3f34474d0cfcd217bc9fe0cbfc1 (patch) | |
| tree | cbacaf79a662ea9d16231d5c40d7cc59f827abef /openstackclient/common | |
| parent | adf9349c40683eb53886365f6df65b8d8515e52c (diff) | |
| download | python-openstackclient-8f59524c3e1ff3f34474d0cfcd217bc9fe0cbfc1.tar.gz | |
Network CRUD
bp/neutron
https://wiki.openstack.org/wiki/OpenStackClient/Commands#Network_2
Change-Id: I89ee083154afa544b03587e84becace36d9d522a
Diffstat (limited to 'openstackclient/common')
| -rw-r--r-- | openstackclient/common/utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openstackclient/common/utils.py b/openstackclient/common/utils.py index a420dd51..0258f931 100644 --- a/openstackclient/common/utils.py +++ b/openstackclient/common/utils.py @@ -84,6 +84,16 @@ def format_dict(data): return output[:-2] +def format_list(data): + """Return a formatted strings + + :param data: a list of strings + :rtype: a string formatted to a,b,c + """ + + return ', '.join(data) + + def get_item_properties(item, fields, mixed_case_fields=[], formatters={}): """Return a tuple containing the item properties. |
