Fix error in action list
Related-Bug: 1625419 Action list can not display the "target" column Change-Id: I45e6f28475da953fa9d84ba05149fb8c2c8106ca
This commit is contained in:
@@ -28,7 +28,7 @@ class TestAction(fakes.TestClusteringv1):
|
||||
|
||||
|
||||
class TestActionList(TestAction):
|
||||
columns = ['id', 'name', 'action', 'status', 'target', 'depends_on',
|
||||
columns = ['id', 'name', 'action', 'status', 'target_id', 'depends_on',
|
||||
'depended_by', 'created_at']
|
||||
response = {"actions": [
|
||||
{
|
||||
|
||||
@@ -1599,7 +1599,7 @@ class ShellTest(testtools.TestCase):
|
||||
@mock.patch.object(utils, 'print_list')
|
||||
def test_do_action_list(self, mock_print):
|
||||
service = mock.Mock()
|
||||
fields = ['id', 'name', 'action', 'status', 'target', 'depends_on',
|
||||
fields = ['id', 'name', 'action', 'status', 'target_id', 'depends_on',
|
||||
'depended_by', 'created_at']
|
||||
args = {
|
||||
'sort': 'status',
|
||||
|
||||
@@ -71,7 +71,7 @@ class ListAction(command.Lister):
|
||||
|
||||
senlin_client = self.app.client_manager.clustering
|
||||
|
||||
columns = ['id', 'name', 'action', 'status', 'target', 'depends_on',
|
||||
columns = ['id', 'name', 'action', 'status', 'target_id', 'depends_on',
|
||||
'depended_by', 'created_at']
|
||||
|
||||
queries = {
|
||||
|
||||
@@ -1500,7 +1500,7 @@ def do_event_show(service, args):
|
||||
def do_action_list(service, args):
|
||||
"""List actions."""
|
||||
show_deprecated('senlin action-list', 'openstack cluster action list')
|
||||
fields = ['id', 'name', 'action', 'status', 'target', 'depends_on',
|
||||
fields = ['id', 'name', 'action', 'status', 'target_id', 'depends_on',
|
||||
'depended_by', 'created_at']
|
||||
|
||||
queries = {
|
||||
|
||||
Reference in New Issue
Block a user