Skip to content

Commit ffe4e44

Browse files
committed
When listing actions, sensors and triggers using the CLI, display "ref" instead
of "id" attribute.
1 parent c6667ad commit ffe4e44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

st2client/st2client/commands/action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, description, app, subparsers, parent_parser=None):
4040

4141

4242
class ActionListCommand(resource.ContentPackResourceListCommand):
43-
display_attributes = ['id', 'pack', 'name', 'description']
43+
display_attributes = ['ref', 'pack', 'name', 'description']
4444

4545

4646
class ActionGetCommand(resource.ContentPackResourceGetCommand):

st2client/st2client/commands/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, description, app, subparsers, parent_parser=None):
1515

1616

1717
class SensorListCommand(resource.ContentPackResourceListCommand):
18-
display_attributes = ['id', 'pack', 'name']
18+
display_attributes = ['ref', 'pack', 'name']
1919

2020

2121
class SensorGetCommand(resource.ContentPackResourceGetCommand):

st2client/st2client/commands/trigger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, description, app, subparsers, parent_parser=None):
1414

1515

1616
class TriggerListCommand(resource.ContentPackResourceListCommand):
17-
display_attributes = ['id', 'pack', 'name', 'description']
17+
display_attributes = ['ref', 'pack', 'name', 'description']
1818

1919

2020
class TriggerGetCommand(resource.ContentPackResourceGetCommand):

0 commit comments

Comments
 (0)