Merge "Fix formatting of OSC server migration check-only"
This commit is contained in:
commit
07486204b6
@ -21,6 +21,7 @@ from osc_lib import utils as osc_utils
|
|||||||
from manilaclient import api_versions
|
from manilaclient import api_versions
|
||||||
from manilaclient.common._i18n import _
|
from manilaclient.common._i18n import _
|
||||||
from manilaclient.common.apiclient import utils as apiutils
|
from manilaclient.common.apiclient import utils as apiutils
|
||||||
|
from manilaclient.common import cliutils
|
||||||
from manilaclient.common import constants
|
from manilaclient.common import constants
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
@ -624,6 +625,14 @@ class ShareServerMigrationStart(command.ShowOne):
|
|||||||
new_share_net_id
|
new_share_net_id
|
||||||
)
|
)
|
||||||
if result:
|
if result:
|
||||||
|
if parsed_args.formatter == 'table':
|
||||||
|
for k, v in result.items():
|
||||||
|
if isinstance(v, dict):
|
||||||
|
capabilities_list = [v]
|
||||||
|
dict_values = cliutils.convert_dict_list_to_string(
|
||||||
|
capabilities_list
|
||||||
|
)
|
||||||
|
result[k] = dict_values
|
||||||
return self.dict2columns(result)
|
return self.dict2columns(result)
|
||||||
else:
|
else:
|
||||||
share_server.migration_start(parsed_args.host,
|
share_server.migration_start(parsed_args.host,
|
||||||
|
Loading…
Reference in New Issue
Block a user