4 Commits

Author SHA1 Message Date
PanFengyun
11b49d6c97 Prints '-' instead of 'None' when data is None
Client prints 'None' when data is None , and client also prints
'None' when data is a string 'None'. But string 'None' is  different
to None. To clear the confusion, Client should print '-' instead of
'None' when data is None. Nova Client and Cinder Client has cleared
the confusion.

Change-Id: I5b7013eb7ccfb99658702066191feed93f82fb8a
Related-Bug: #1600553
Closed-Bug: #1422244
2016-07-10 19:08:02 +08:00
Anh Tran
d6a697cabb Add '--fields' to show more columns for bay-list
This patch does:
  - move '_get_list_table_columns_and_formatters' function
    to cliutils.
  - add '--fields' to 'bay-list' command to show more
    specific fields.
  - add test case for bay-list with '--fields'.

Change-Id: I2fdd66f0c6648bb2c6ae65325cbba3656b9854f6
Closes-Bug: #1535687
2016-05-17 13:20:44 +07:00
Anh Tran
d65a5b5b38 Add '--fields' to show more columns for baymodel-list
This patch adds '--fields' to 'baymodel-list' command to show more
specific fields.

Available fields for listing baymodels:
  -- uuid
  -- name
  -- coe
  -- image_id
  -- apiserver_port
  -- registry_enabled
  -- server_type
  -- public
  -- links
  -- tls_disabled

Change-Id: Ie887574d6e8a2ddda25e042317dd98c781016c80
Closes-Bug: #1551574
2016-05-13 14:11:23 +07:00
Yang Hongyang
c7d2bbfc0f Sync with oslo-incubator
Apiclient[1] and cliutils[2] is removed form Oslo incubator, we should keep
the local copy by ourself.
1. copy openstack/common/apiclient to common/apiclient
2. only keep base, auth, exceptions from apiclient, others are unused
3. copy openstack/common/cliutils.py to common/cliutils.py
4. update all magnumclient.openstack.common.* users to use
   magnumclient.common.*

This is the first step to delete openstack common modules.

[1] Change: I2020d73fa9cedb3b3b87c1d8dbc8d437857ec7c2
[2] Change: Ibc5a8f11c6e5c308cec15a60eeb07a898254f9b7

Partial-Bug: #1545957
Change-Id: Ide3814d87ecdf3255868bf3b78fdceb58bd14295
2016-02-18 13:06:00 +08:00