Unify style of 'domain' field
The output of CLI need unify style of 'domain' filed. Change-Id: I09b6d4ec952ce30d2d74e6a51e58e16d1d585718 Partial-Bug: #1703545
This commit is contained in:
parent
7a26c7e865
commit
97e85c1c8a
@ -138,19 +138,10 @@ def _show_policy(senlin_client, policy_id):
|
||||
formatters = {
|
||||
'spec': senlin_utils.json_formatter
|
||||
}
|
||||
columns = [
|
||||
'created_at',
|
||||
'data',
|
||||
'domain',
|
||||
'id',
|
||||
'name',
|
||||
'project_id',
|
||||
'spec',
|
||||
'type',
|
||||
'updated_at',
|
||||
'user_id'
|
||||
]
|
||||
return columns, utils.get_dict_properties(policy.to_dict(), columns,
|
||||
|
||||
data = policy.to_dict()
|
||||
columns = sorted(data.keys())
|
||||
return columns, utils.get_dict_properties(data, columns,
|
||||
formatters=formatters)
|
||||
|
||||
|
||||
|
@ -57,19 +57,9 @@ def _show_profile(senlin_client, profile_id):
|
||||
['type', 'version', 'properties'],
|
||||
['property', 'value'])
|
||||
|
||||
columns = [
|
||||
'created_at',
|
||||
'domain',
|
||||
'id',
|
||||
'metadata',
|
||||
'name',
|
||||
'project_id',
|
||||
'spec',
|
||||
'type',
|
||||
'updated_at',
|
||||
'user_id'
|
||||
]
|
||||
return columns, utils.get_dict_properties(data.to_dict(), columns,
|
||||
data = data.to_dict()
|
||||
columns = sorted(data.keys())
|
||||
return columns, utils.get_dict_properties(data, columns,
|
||||
formatters=formatters)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user